抖店api
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
package afterSale_applyMarketAfterSale_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
afterSale_applyMarketAfterSale_respone "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/afterSale_ApplyMarketAfterSale/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type AfterSaleApplyMarketAfterSaleRequest struct {
|
||||
doudian_sdk.BaseDoudianOpApiRequest
|
||||
Param *AfterSaleApplyMarketAfterSaleParam
|
||||
}
|
||||
|
||||
func (c *AfterSaleApplyMarketAfterSaleRequest) GetUrlPath() string {
|
||||
return "/afterSale/ApplyMarketAfterSale"
|
||||
}
|
||||
|
||||
func New() *AfterSaleApplyMarketAfterSaleRequest {
|
||||
request := &AfterSaleApplyMarketAfterSaleRequest{
|
||||
Param: &AfterSaleApplyMarketAfterSaleParam{},
|
||||
}
|
||||
request.SetConfig(doudian_sdk.GlobalConfig)
|
||||
request.SetClient(doudian_sdk.DefaultDoudianOpApiClient)
|
||||
return request
|
||||
|
||||
}
|
||||
|
||||
func (c *AfterSaleApplyMarketAfterSaleRequest) Execute(accessToken *doudian_sdk.AccessToken) (*afterSale_applyMarketAfterSale_respone.ApplyMarketAfterSaleResponse, error) {
|
||||
responseJson, err := c.GetClient().Request(c, accessToken)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
response := &afterSale_applyMarketAfterSale_respone.ApplyMarketAfterSaleResponse{}
|
||||
_ = json.Unmarshal([]byte(responseJson), response)
|
||||
return response, nil
|
||||
|
||||
}
|
||||
|
||||
func (c *AfterSaleApplyMarketAfterSaleRequest) GetParamObject() interface{} {
|
||||
return c.Param
|
||||
}
|
||||
|
||||
func (c *AfterSaleApplyMarketAfterSaleRequest) GetParams() *AfterSaleApplyMarketAfterSaleParam {
|
||||
return c.Param
|
||||
}
|
||||
|
||||
type AfterSaleApplyMarketAfterSaleParam struct {
|
||||
// 订单id
|
||||
SkuOrderId int64 `json:"sku_order_id"`
|
||||
// 缺重克数,非缺重场景不传;单位 毫克
|
||||
MissGram int `json:"miss_gram"`
|
||||
// 退款金额,单位分。 只缺重有效,缺货/拒签场景由系统计费算出。 最多不会超过订单金额
|
||||
RefundAmount int64 `json:"refund_amount"`
|
||||
// 退款金额如果传了,就按传的金额退;不传由平台根据件数来分摊计算(特别注只有整单退才会退运费,否则运费不退;缺货暂时不支持按件数退,只能整单退;)
|
||||
ItemCount int64 `json:"item_count"`
|
||||
// 售后原因枚举 MissGram = 1缺重,必传克数、金额; MissItem = 2缺货,只支持整单退; RefuseSign = 3 拒收,支持按件数退,必传件数,金额由抖音计算
|
||||
AfterSaleReason int32 `json:"after_sale_reason"`
|
||||
// 门店ID,传了就做检验,不传默认通过,由isv自行保证权限
|
||||
StoreId int64 `json:"store_id"`
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package afterSale_applyMarketAfterSale_respone
|
||||
|
||||
import (
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ApplyMarketAfterSaleResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *ApplyMarketAfterSaleData `json:"data"`
|
||||
}
|
||||
type ApplyMarketAfterSaleData struct {
|
||||
// 售后ID
|
||||
AfterSaleId string `json:"after_sale_id"`
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package afterSale_buyerExchangeConfirm_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
address_areaList_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/address_areaList/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type AfterSaleBuyerExchangeConfirmRequest struct {
|
||||
doudian_sdk.BaseDoudianOpApiRequest
|
||||
Param *AfterSaleBuyerExchangeConfirmParam
|
||||
}
|
||||
|
||||
func (c *AfterSaleBuyerExchangeConfirmRequest) GetUrlPath() string {
|
||||
return "/afterSale/buyerExchangeConfirm"
|
||||
}
|
||||
|
||||
func New() *AfterSaleBuyerExchangeConfirmRequest {
|
||||
request := &AfterSaleBuyerExchangeConfirmRequest{
|
||||
Param: &AfterSaleBuyerExchangeConfirmParam{},
|
||||
}
|
||||
request.SetConfig(doudian_sdk.GlobalConfig)
|
||||
request.SetClient(doudian_sdk.DefaultDoudianOpApiClient)
|
||||
return request
|
||||
|
||||
}
|
||||
|
||||
func (c *AfterSaleBuyerExchangeConfirmRequest) Execute(accessToken *doudian_sdk.AccessToken) (*address_areaList_response.AddressAreaListResponse, error) {
|
||||
responseJson, err := c.GetClient().Request(c, accessToken)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
response := &address_areaList_response.AddressAreaListResponse{}
|
||||
_ = json.Unmarshal([]byte(responseJson), response)
|
||||
return response, nil
|
||||
|
||||
}
|
||||
|
||||
func (c *AfterSaleBuyerExchangeConfirmRequest) GetParamObject() interface{} {
|
||||
return c.Param
|
||||
}
|
||||
|
||||
func (c *AfterSaleBuyerExchangeConfirmRequest) GetParams() *AfterSaleBuyerExchangeConfirmParam {
|
||||
return c.Param
|
||||
}
|
||||
|
||||
type AfterSaleBuyerExchangeConfirmParam struct {
|
||||
// 售后的单id
|
||||
AfterSaleId int64 `json:"aftersale_id"`
|
||||
// 处理方式: false:确认仓库收到退回货货物并二次发货(或直接退款) true:拒绝
|
||||
IsReject bool `json:"is_reject"`
|
||||
// s_reject为false时,必填,用于指定换货操作行为;换货动作: refund_agree : 同意换货转退款 exchange_agree:同意换货并发货
|
||||
Action string `json:"action"`
|
||||
// is_reject = true 时需要选择拒绝原因;具体各个可选值对应的拒绝原因见下表
|
||||
Comment string `json:"comment"`
|
||||
// 凭证图片,只能传一张
|
||||
Evidence []string `json:"evidence"`
|
||||
// is_reject = false时需要上传物流单号
|
||||
LogisticsCode string `json:"logistics_code"`
|
||||
// is_reject = false时需要上传物流公司编号 ,如圆通为yuantong
|
||||
CompanyCode string `json:"company_code"`
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package address_areaList_response
|
||||
|
||||
import (
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type AfterSaleBuyerExchangeConfirmResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
}
|
||||
@@ -45,4 +45,6 @@ func (c *AfterSaleRejectReasonCodeListRequest) GetParams() *AfterSaleRejectReaso
|
||||
}
|
||||
|
||||
type AfterSaleRejectReasonCodeListParam struct {
|
||||
// 备注关联的售后ID
|
||||
AfterSaleId int64 `json:"after_sale_id"`
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@ package freightTemplate_create_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
freightTemplate_create_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/freightTemplate_create/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type FreightTemplateCreateRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package freightTemplate_detail_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
freightTemplate_detail_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/freightTemplate_detail/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type FreightTemplateDetailRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package freightTemplate_list_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
freightTemplate_list_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/freightTemplate_list/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type FreightTemplateListRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package freightTemplate_update_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
freightTemplate_update_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/freightTemplate_update/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type FreightTemplateUpdateRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package logistics_appendSubOrder_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
logistics_appendSubOrder_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/logistics_appendSubOrder/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type LogisticsAppendSubOrderRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package logistics_cancelOrder_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
logistics_cancelOrder_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/logistics_cancelOrder/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type LogisticsCancelOrderRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package logistics_createSFOrder_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
logistics_createSFOrder_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/logistics_createSFOrder/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type LogisticsCreateSFOrderRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package logistics_customTemplateList_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
logistics_customTemplateList_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/logistics_customTemplateList/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type LogisticsCustomTemplateListRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package logistics_deliveryNotice_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
logistics_deliveryNotice_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/logistics_deliveryNotice/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type LogisticsDeliveryNoticeRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package logistics_getOutRange_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
logistics_getOutRange_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/logistics_getOutRange/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type LogisticsGetOutRangeRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package logistics_getShopKey_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
logistics_getShopKey_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/logistics_getShopKey/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type LogisticsGetShopKeyRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package logistics_listShopNetsite_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
logistics_listShopNetsite_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/logistics_listShopNetsite/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type LogisticsListShopNetsiteRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package logistics_newCreateOrder_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
logistics_newCreateOrder_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/logistics_newCreateOrder/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type LogisticsNewCreateOrderRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package logistics_queryPackageRoute_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
logistics_queryPackageRoute_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/logistics_queryPackageRoute/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type LogisticsQueryPackageRouteRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package logistics_registerPackageRoute_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
logistics_registerPackageRoute_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/logistics_registerPackageRoute/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type LogisticsRegisterPackageRouteRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package logistics_templateList_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
logistics_templateList_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/logistics_templateList/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type LogisticsTemplateListRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package logistics_trackNoRouteDetail_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
logistics_trackNoRouteDetail_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/logistics_trackNoRouteDetail/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type LogisticsTrackNoRouteDetailRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package logistics_updateOrder_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
logistics_updateOrder_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/logistics_updateOrder/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type LogisticsUpdateOrderRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package logistics_waybillApply_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
logistics_waybillApply_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/logistics_waybillApply/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type LogisticsWaybillApplyRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package material_batchUploadImageSync_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
material_batchUploadImageSync_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/material_batchUploadImageSync/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type MaterialBatchUploadImageSyncRequest struct {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package material_batchUploadImageSync_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
|
||||
type MaterialBatchUploadImageSyncResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *MaterialBatchUploadImageSyncData `json:"data"`
|
||||
|
||||
@@ -2,6 +2,8 @@ package material_batchUploadVideoAsync_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
material_batchUploadVideoAsync_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/material_batchUploadVideoAsync/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type MaterialBatchUploadVideoAsyncRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package material_createFolder_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
material_createFolder_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/material_createFolder/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type MaterialCreateFolderRequest struct {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package material_createFolder_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
|
||||
type MaterialCreateFolderResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *MaterialCreateFolderData `json:"data"`
|
||||
|
||||
@@ -2,6 +2,8 @@ package material_deleteFolder_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
material_deleteFolder_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/material_deleteFolder/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type MaterialDeleteFolderRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package material_deleteMaterial_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
material_deleteMaterial_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/material_deleteMaterial/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type MaterialDeleteMaterialRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package material_easyShuttle_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
material_easyShuttle_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/material_easyShuttle/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type MaterialEasyShuttleRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package material_editMaterial_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
material_editMaterial_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/material_editMaterial/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type MaterialEditMaterialRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package material_getFolderInfo_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
material_getFolderInfo_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/material_getFolderInfo/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type MaterialGetFolderInfoRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package material_get_cap_info_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
material_get_cap_info_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/material_get_cap_info/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type MaterialGetCapInfoRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package material_mGetPlayInfo_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
material_mGetPlayInfo_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/material_mGetPlayInfo/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type MaterialMGetPlayInfoRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package material_moveFolderToRecycleBin_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
material_moveFolderToRecycleBin_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/material_moveFolderToRecycleBin/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type MaterialMoveFolderToRecycleBinRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package material_moveMaterialToRecycleBin_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
material_moveMaterialToRecycleBin_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/material_moveMaterialToRecycleBin/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type MaterialMoveMaterialToRecycleBinRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package material_queryMaterialDetail_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
material_queryMaterialDetail_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/material_queryMaterialDetail/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type MaterialQueryMaterialDetailRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package material_recoverFolder_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
material_recoverFolder_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/material_recoverFolder/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type MaterialRecoverFolderRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package material_recoverMaterial_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
material_recoverMaterial_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/material_recoverMaterial/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type MaterialRecoverMaterialRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package material_searchFolder_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
material_searchFolder_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/material_searchFolder/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type MaterialSearchFolderRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package material_searchMaterial_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
material_searchMaterial_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/material_searchMaterial/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type MaterialSearchMaterialRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package material_uploadImageSync_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
material_uploadImageSync_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/material_uploadImageSync/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type MaterialUploadImageSyncRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package material_uploadVideoAsync_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
material_uploadVideoAsync_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/material_uploadVideoAsync/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type MaterialUploadVideoAsyncRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package order_AddressAppliedSwitch_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
order_AddressAppliedSwitch_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/order_AddressAppliedSwitch/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type OrderAddressAppliedSwitchRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package order_BatchSearchIndex_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
order_BatchSearchIndex_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/order_BatchSearchIndex/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type OrderBatchSearchIndexRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package order_addOrderRemark_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
order_addOrderRemark_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/order_addOrderRemark/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type OrderAddOrderRemarkRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package order_addSerialNumber_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
order_addSerialNumber_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/order_addSerialNumber/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type OrderAddSerialNumberRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package order_addresSwitchConfig_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
order_addresSwitchConfig_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/order_addresSwitchConfig/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type OrderAddresSwitchConfigRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package order_batchSensitive_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
order_batchSensitive_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/order_batchSensitive/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type OrderBatchSensitiveRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package order_getSearchIndex_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
order_getSearchIndex_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/order_getSearchIndex/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type OrderGetSearchIndexRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package order_getServiceList_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
order_getServiceList_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/order_getServiceList/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type OrderGetServiceListRequest struct {
|
||||
@@ -47,7 +49,7 @@ type OrderGetServiceListParam struct {
|
||||
StartTime int64 `json:"start_time"`
|
||||
// 结束时间时间戳,必须大于开始时间
|
||||
EndTime int64 `json:"end_time"`
|
||||
// 1、不传代表获取全部服务请求 2、操作状态:0 #待处理 10 #审核中 100 #已关闭
|
||||
// 1、不传代表获取全部服务请求 2、操作状态:0 #待处理 10 #审核中 100 #已关闭
|
||||
Status int32 `json:"status"`
|
||||
// 订单id
|
||||
OrderId int64 `json:"order_id"`
|
||||
@@ -59,6 +61,6 @@ type OrderGetServiceListParam struct {
|
||||
Page int32 `json:"page"`
|
||||
// 每页订单数(默认为10,最大100),超过100则会按照最大值100处理
|
||||
Size int32 `json:"size"`
|
||||
// 排序方式:ASC按时间升序, DESC按时间降序 默认DESC
|
||||
// 排序方式:ASC按时间升序, DESC按时间降序 默认DESC
|
||||
Order string `json:"order"`
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@ package order_logisticsAdd_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
order_logisticsAdd_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/order_logisticsAdd/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type OrderLogisticsAddRequest struct {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package order_logisticsAdd_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
|
||||
type OrderLogisticsAddResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *OrderLogisticsAddData `json:"data"`
|
||||
|
||||
@@ -2,6 +2,8 @@ package order_logisticsAddMultiPack_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
order_logisticsAddMultiPack_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/order_logisticsAddMultiPack/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type OrderLogisticsAddMultiPackRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package order_logisticsAddSinglePack_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
order_logisticsAddSinglePack_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/order_logisticsAddSinglePack/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type OrderLogisticsAddSinglePackRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package order_logisticsCompanyList_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
order_logisticsCompanyList_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/order_logisticsCompanyList/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type OrderLogisticsCompanyListRequest struct {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package order_review_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
|
||||
type OrderReviewResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *OrderReviewData `json:"data"`
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
package order_serviceDetail_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
|
||||
type OrderServiceDetailResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *OrderServiceDetailData `json:"data"`
|
||||
}
|
||||
type Detail struct {
|
||||
// 服务请求ID
|
||||
// 服务请求ID
|
||||
Id int64 `json:"id"`
|
||||
// 订单号
|
||||
OrderId int64 `json:"order_id"`
|
||||
@@ -15,7 +17,7 @@ type Detail struct {
|
||||
Detail string `json:"detail"`
|
||||
// 商家答复内容
|
||||
Reply string `json:"reply"`
|
||||
// 服务单创建时间
|
||||
// 服务单创建时间
|
||||
CreateTime string `json:"create_time"`
|
||||
// 服务单类型,枚举
|
||||
ServiceType int64 `json:"service_type"`
|
||||
@@ -31,8 +33,6 @@ type Detail struct {
|
||||
RejectDetail string `json:"reject_detail"`
|
||||
// 驳回时间
|
||||
RejectTime string `json:"reject_time"`
|
||||
// 驳回时间
|
||||
RejectTime string `json:"reject_time"`
|
||||
// 凭证demo url
|
||||
ProofDemo string `json:"proof_demo"`
|
||||
// 是否必须上传凭证
|
||||
@@ -43,7 +43,7 @@ type Detail struct {
|
||||
ExpirationTime string `json:"expiration_time"`
|
||||
// 关闭时间
|
||||
CloseTime string `json:"close_time"`
|
||||
// 关闭原因
|
||||
// 关闭原因
|
||||
CloseDetail string `json:"close_detail"`
|
||||
// 首次回复时间
|
||||
FirstReplyTime string `json:"first_reply_time"`
|
||||
@@ -63,7 +63,7 @@ type LogsItem struct {
|
||||
ServiceDetail string `json:"service_detail"`
|
||||
// 回复内容
|
||||
ReplyDetail string `json:"reply_detail"`
|
||||
// 关闭原因
|
||||
// 关闭原因
|
||||
CloseDetail string `json:"close_detail"`
|
||||
// 驳回内容
|
||||
RejectDetail string `json:"reject_detail"`
|
||||
|
||||
@@ -2,6 +2,8 @@ package order_updateOrderAmount_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
order_updateOrderAmount_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/order_updateOrderAmount/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type OrderUpdateOrderAmountRequest struct {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package order_updateOrderAmount_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
|
||||
type OrderUpdateOrderAmountResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *OrderUpdateOrderAmountData `json:"data"`
|
||||
|
||||
@@ -2,6 +2,8 @@ package order_updatePostAmount_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
order_updatePostAmount_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/order_updatePostAmount/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type OrderUpdatePostAmountRequest struct {
|
||||
@@ -45,5 +47,4 @@ func (c *OrderUpdatePostAmountRequest) GetParams() *OrderUpdatePostAmountParam {
|
||||
type OrderUpdatePostAmountParam struct {
|
||||
OrderId string `json:"order_id"`
|
||||
PostAmount int64 `json:"post_amount"`
|
||||
PostAmount int64 `json:"post_amount"`
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package order_updatePostAmount_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
|
||||
type OrderUpdatePostAmountResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *OrderUpdatePostAmountData `json:"data"`
|
||||
|
||||
@@ -2,6 +2,8 @@ package product_CategoryDimList_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
product_CategoryDimList_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_CategoryDimList/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ProductCategoryDimListRequest struct {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package product_CategoryDimList_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
|
||||
type ProductCategoryDimListResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *ProductCategoryDimListData `json:"data"`
|
||||
|
||||
@@ -2,6 +2,8 @@ package product_GetRecommendCategory_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
product_GetRecommendCategory_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_GetRecommendCategory/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ProductGetRecommendCategoryRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package product_addCbProduct_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
product_addCbProduct_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_addCbProduct/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ProductAddCbProductRequest struct {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package product_addCbProduct_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
|
||||
type ProductAddCbProductResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *ProductAddCbProductData `json:"data"`
|
||||
|
||||
@@ -2,6 +2,8 @@ package product_addV2_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
product_addV2_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_addV2/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ProductAddV2Request struct {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package product_addV2_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
|
||||
type ProductAddV2Response struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *ProductAddV2Data `json:"data"`
|
||||
|
||||
@@ -2,6 +2,8 @@ package product_createComponentTemplateV2_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
product_createComponentTemplateV2_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_createComponentTemplateV2/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ProductCreateComponentTemplateV2Request struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package product_datchDelComponentTemplate_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
product_datchDelComponentTemplate_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_datchDelComponentTemplate/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ProductDatchDelComponentTemplateRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package product_del_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
product_del_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_del/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ProductDelRequest struct {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package product_del_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
|
||||
type ProductDelResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *ProductDelData `json:"data"`
|
||||
|
||||
@@ -2,6 +2,8 @@ package product_detail_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
product_detail_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_detail/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ProductDetailRequest struct {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package product_detail_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
|
||||
type ProductDetailResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *ProductDetailData `json:"data"`
|
||||
|
||||
@@ -2,6 +2,8 @@ package product_editBuyerLimit_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
product_editBuyerLimit_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_editBuyerLimit/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ProductEditBuyerLimitRequest struct {
|
||||
@@ -49,6 +51,6 @@ type ProductEditBuyerLimitParam struct {
|
||||
MaximumPerOrder int64 `json:"maximum_per_order"`
|
||||
// 每个用户累计限购件数
|
||||
LimitPerBuyer int64 `json:"limit_per_buyer"`
|
||||
// 每个用户每次下单至少购买的件数
|
||||
// 每个用户每次下单至少购买的件数
|
||||
MinimumPerOrder int64 `json:"minimum_per_order"`
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@ package product_editCbProduct_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
product_editCbProduct_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_editCbProduct/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ProductEditCbProductRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package product_editComponentTemplate_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
product_editComponentTemplate_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_editComponentTemplate/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ProductEditComponentTemplateRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package product_editV2_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
product_editV2_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_editV2/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ProductEditV2Request struct {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package product_editV2_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
|
||||
type ProductEditV2Response struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *ProductEditV2Data `json:"data"`
|
||||
|
||||
@@ -2,6 +2,8 @@ package product_getCatePropertyV2_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
product_getCatePropertyV2_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_getCatePropertyV2/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ProductGetCatePropertyV2Request struct {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package product_getCatePropertyV2_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
|
||||
type ProductGetCatePropertyV2Response struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *ProductGetCatePropertyV2Data `json:"data"`
|
||||
|
||||
@@ -2,6 +2,8 @@ package product_getComponentTemplate_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
product_getComponentTemplate_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_getComponentTemplate/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ProductGetComponentTemplateRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package product_getRecommendName_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
product_getRecommendName_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_getRecommendName/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ProductGetRecommendNameRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package product_listV2_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
product_listV2_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_listV2/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ProductListV2Request struct {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package product_listV2_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
|
||||
type ProductListV2Response struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *ProductListV2Data `json:"data"`
|
||||
|
||||
@@ -2,6 +2,8 @@ package product_qualificationConfig_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
product_qualificationConfig_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_qualificationConfig/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ProductQualificationConfigRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package product_qualityDetail_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
product_qualityDetail_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_qualityDetail/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ProductQualityDetailRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package product_qualityTask_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
product_qualityTask_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_qualityTask/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ProductQualityTaskRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package product_setOffline_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
product_setOffline_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/product_setOffline/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ProductSetOfflineRequest struct {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package product_setOffline_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
|
||||
type ProductSetOfflineResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *ProductSetOfflineData `json:"data"`
|
||||
|
||||
@@ -2,6 +2,8 @@ package promise_deliveryList_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
promise_deliveryList_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/promise_deliveryList/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type PromiseDeliveryListRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package promise_setSkuShipTime_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
promise_setSkuShipTime_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/promise_setSkuShipTime/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type PromiseSetSkuShipTimeRequest struct {
|
||||
|
||||
@@ -2,6 +2,8 @@ package security_batchReportOrderSecurityEvent_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
security_batchReportOrderSecurityEvent_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/security_batchReportOrderSecurityEvent/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type SecurityBatchReportOrderSecurityEventRequest struct {
|
||||
|
||||
@@ -4,12 +4,13 @@ import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/c
|
||||
|
||||
type ShopGetShopCategoryResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *ShopGetShopCategoryData `json:"data"`
|
||||
}
|
||||
type ShopGetShopCategoryData struct {
|
||||
// 返回参数列表
|
||||
Data []DataItem `json:"data"`
|
||||
}
|
||||
|
||||
//type ShopGetShopCategoryData struct {
|
||||
// // 返回参数列表
|
||||
// Data []DataItem `json:"data"`
|
||||
//}
|
||||
type DataItem struct {
|
||||
// 类目id,用于商品发布和更新,对应请求参数category_leaf_id字段
|
||||
Id int64 `json:"id"`
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
package shop_getStoreFreight_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
shop_getStoreFreight_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/shop_getStoreFreight/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ShopGetStoreFreightRequest struct {
|
||||
doudian_sdk.BaseDoudianOpApiRequest
|
||||
Param *ShopGetStoreFreightParam
|
||||
}
|
||||
|
||||
func (c *ShopGetStoreFreightRequest) GetUrlPath() string {
|
||||
return "/shop/getStoreFreight"
|
||||
}
|
||||
|
||||
func New() *ShopGetStoreFreightRequest {
|
||||
request := &ShopGetStoreFreightRequest{
|
||||
Param: &ShopGetStoreFreightParam{},
|
||||
}
|
||||
request.SetConfig(doudian_sdk.GlobalConfig)
|
||||
request.SetClient(doudian_sdk.DefaultDoudianOpApiClient)
|
||||
return request
|
||||
|
||||
}
|
||||
|
||||
func (c *ShopGetStoreFreightRequest) Execute(accessToken *doudian_sdk.AccessToken) (*shop_getStoreFreight_response.ShopGetStoreFreightResponse, error) {
|
||||
responseJson, err := c.GetClient().Request(c, accessToken)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
response := &shop_getStoreFreight_response.ShopGetStoreFreightResponse{}
|
||||
_ = json.Unmarshal([]byte(responseJson), response)
|
||||
return response, nil
|
||||
|
||||
}
|
||||
|
||||
func (c *ShopGetStoreFreightRequest) GetParamObject() interface{} {
|
||||
return c.Param
|
||||
}
|
||||
|
||||
func (c *ShopGetStoreFreightRequest) GetParams() *ShopGetStoreFreightParam {
|
||||
return c.Param
|
||||
}
|
||||
|
||||
type ShopGetStoreFreightParam struct {
|
||||
// 门店ID
|
||||
StoreId int64 `json:"store_id"`
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package shop_getStoreFreight_response
|
||||
|
||||
import (
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type ShopGetStoreFreightResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *ShopGetStoreFreightData `json:"data"`
|
||||
}
|
||||
type StoreFreightsItem struct {
|
||||
// 门店id
|
||||
StoreId int64 `json:"store_id"`
|
||||
// 运费模版id
|
||||
FreightId int64 `json:"freight_id"`
|
||||
}
|
||||
type ShopGetStoreFreightData struct {
|
||||
// 运费模版关联关系
|
||||
StoreFreights []StoreFreightsItem `json:"store_freights"`
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
package sku_list_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
|
||||
type SkuListResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *SkuListData `json:"data"`
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user