抖音运力api

This commit is contained in:
richboo111
2022-12-22 14:14:47 +08:00
parent a6f3a604d3
commit 4ef2985566
13 changed files with 313 additions and 26 deletions

View File

@@ -4,8 +4,8 @@ import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/c
type SupermCancelPlatformPickUpResponse struct {
doudian_sdk.BaseDoudianOpApiResponse
Data *SupermCancelPlatformPickUpResponseData `json:"data"`
Data *SupermCancelPlatformPickUpData `json:"data"`
}
type SupermCancelPlatformPickUpResponseData struct {
type SupermCancelPlatformPickUpData struct {
}

View File

@@ -1 +1,49 @@
package request
package superm_createVirtualMobile_request
import (
"encoding/json"
superm_createVirtualMobile_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/superm_createVirtualMobile/response"
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
)
type SupermCreateVirtualMobileRequest struct {
doudian_sdk.BaseDoudianOpApiRequest
Param *SupermOrderDispatcherParam
}
func (c *SupermCreateVirtualMobileRequest) GetUrlPath() string {
return "/superm/createVirtualMobile"
}
func New() *SupermCreateVirtualMobileRequest {
request := &SupermCreateVirtualMobileRequest{
Param: &SupermOrderDispatcherParam{},
}
request.SetConfig(doudian_sdk.GlobalConfig)
request.SetClient(doudian_sdk.DefaultDoudianOpApiClient)
return request
}
func (c *SupermCreateVirtualMobileRequest) Execute(accessToken *doudian_sdk.AccessToken) (*superm_createVirtualMobile_response.SupermCreateVirtualMobileResponse, error) {
responseJson, err := c.GetClient().Request(c, accessToken)
if err != nil {
return nil, err
}
response := &superm_createVirtualMobile_response.SupermCreateVirtualMobileResponse{}
_ = json.Unmarshal([]byte(responseJson), response)
return response, nil
}
func (c *SupermCreateVirtualMobileRequest) GetParamObject() interface{} {
return c.Param
}
func (c *SupermCreateVirtualMobileRequest) GetParams() *SupermOrderDispatcherParam {
return c.Param
}
type SupermOrderDispatcherParam struct {
ShopOrderID int64 `json:"shopOrderID"` //店铺父订单号
}

View File

@@ -1 +1,17 @@
package response
package superm_createVirtualMobile_response
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
type SupermCreateVirtualMobileResponse struct {
doudian_sdk.BaseDoudianOpApiResponse
Data *SupermCreateVirtualMobileData `json:"data"`
}
type MobileInfo struct {
IsNewCreate bool `json:"isNewCreate"` //是否新创建的
MobileVirtual string `json:"mobileVirtual"` //虚拟号值
ExpireTime string `json:"expireTime"` //过期时间 格式为yyyy-MM-dd HH:mm:ss 2016-01-01 12:00:00
}
type SupermCreateVirtualMobileData struct {
MobileInfo *MobileInfo `json:"mobileInfo"` //虚拟隐私小号信息
}

View File

@@ -1 +1,51 @@
package request
package superm_getDispatcherInfo_request
import (
"encoding/json"
superm_getDispatcherInfo_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/superm_getDispatcherInfo/response"
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
)
type SupermGetDispatcherInfoRequest struct {
doudian_sdk.BaseDoudianOpApiRequest
Param *SupermGetDispatcherInfoParam
}
func (c *SupermGetDispatcherInfoRequest) GetUrlPath() string {
return "/superm/getDispatcherInfo"
}
func New() *SupermGetDispatcherInfoRequest {
request := &SupermGetDispatcherInfoRequest{
Param: &SupermGetDispatcherInfoParam{},
}
request.SetConfig(doudian_sdk.GlobalConfig)
request.SetClient(doudian_sdk.DefaultDoudianOpApiClient)
return request
}
func (c *SupermGetDispatcherInfoRequest) Execute(accessToken *doudian_sdk.AccessToken) (*superm_getDispatcherInfo_response.SupermGetDispatcherInfoResponse, error) {
responseJson, err := c.GetClient().Request(c, accessToken)
if err != nil {
return nil, err
}
response := &superm_getDispatcherInfo_response.SupermGetDispatcherInfoResponse{}
_ = json.Unmarshal([]byte(responseJson), response)
return response, nil
}
func (c *SupermGetDispatcherInfoRequest) GetParamObject() interface{} {
return c.Param
}
func (c *SupermGetDispatcherInfoRequest) GetParams() *SupermGetDispatcherInfoParam {
return c.Param
}
type SupermGetDispatcherInfoParam struct {
StoreID int64 `json:"storeID"`
ShopOrderID int64 `json:"shopOrderID"`
DispatcherType int32 `json:"dispatcherType"`
}

View File

@@ -1 +1,12 @@
package response
package superm_getDispatcherInfo_response
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
type SupermGetDispatcherInfoResponse struct {
doudian_sdk.BaseDoudianOpApiResponse
Data *SupermGetDispatcherInfoData `json:"data"`
}
type SupermGetDispatcherInfoData struct {
DispatcherFee int64 `json:"dispatcherFee"` //呼叫运力费用,单位 分
}

View File

@@ -1 +1,51 @@
package request
package superm_orderDispatcher_request
import (
"encoding/json"
superm_getDispatcherInfo_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/superm_getDispatcherInfo/response"
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
)
type SupermOrderDispatcherRequest struct {
doudian_sdk.BaseDoudianOpApiRequest
Param *SupermOrderDispatcherParam
}
func (c *SupermOrderDispatcherRequest) GetUrlPath() string {
return "/superm/orderDispatcher"
}
func New() *SupermOrderDispatcherRequest {
request := &SupermOrderDispatcherRequest{
Param: &SupermOrderDispatcherParam{},
}
request.SetConfig(doudian_sdk.GlobalConfig)
request.SetClient(doudian_sdk.DefaultDoudianOpApiClient)
return request
}
func (c *SupermOrderDispatcherRequest) Execute(accessToken *doudian_sdk.AccessToken) (*superm_getDispatcherInfo_response.SupermGetDispatcherInfoResponse, error) {
responseJson, err := c.GetClient().Request(c, accessToken)
if err != nil {
return nil, err
}
response := &superm_getDispatcherInfo_response.SupermGetDispatcherInfoResponse{}
_ = json.Unmarshal([]byte(responseJson), response)
return response, nil
}
func (c *SupermOrderDispatcherRequest) GetParamObject() interface{} {
return c.Param
}
func (c *SupermOrderDispatcherRequest) GetParams() *SupermOrderDispatcherParam {
return c.Param
}
type SupermOrderDispatcherParam struct {
StoreID int64 `json:"storeID"`
ShopOrderID int64 `json:"shopOrderID"`
DispatcherType int32 `json:"dispatcherType"`
}

View File

@@ -1 +1,12 @@
package response
package superm_orderDispatcher_response
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
type SupermOrderDispatcherResponse struct {
doudian_sdk.BaseDoudianOpApiResponse
Data *SupermOrderDispatcherData `json:"data"`
}
type SupermOrderDispatcherData struct {
DispatcherFee int64 `json:"dispatcherFee"` //呼叫运力费用
}