1
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
package superm_getStoreAutoCallRiderInfo_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
superm_getStoreAutoCallRiderInfo_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/superm_getStoreAutoCallRiderInfo/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type SupermGetStoreAutoCallRiderInfoRequest struct {
|
||||
doudian_sdk.BaseDoudianOpApiRequest
|
||||
Param *SupermGetStoreAutoCallRiderInfoParam
|
||||
}
|
||||
|
||||
func (c *SupermGetStoreAutoCallRiderInfoRequest) GetUrlPath() string {
|
||||
return "/superm/getStoreAutoCallRiderInfo"
|
||||
}
|
||||
|
||||
func New() *SupermGetStoreAutoCallRiderInfoRequest {
|
||||
request := &SupermGetStoreAutoCallRiderInfoRequest{
|
||||
Param: &SupermGetStoreAutoCallRiderInfoParam{},
|
||||
}
|
||||
request.SetConfig(doudian_sdk.GlobalConfig)
|
||||
request.SetClient(doudian_sdk.DefaultDoudianOpApiClient)
|
||||
return request
|
||||
|
||||
}
|
||||
|
||||
func (c *SupermGetStoreAutoCallRiderInfoRequest) Execute(accessToken *doudian_sdk.AccessToken) (*superm_getStoreAutoCallRiderInfo_response.SupermGetStoreAutoCallRiderResponse, error) {
|
||||
responseJson, err := c.GetClient().Request(c, accessToken)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
response := &superm_getStoreAutoCallRiderInfo_response.SupermGetStoreAutoCallRiderResponse{}
|
||||
_ = json.Unmarshal([]byte(responseJson), response)
|
||||
return response, nil
|
||||
|
||||
}
|
||||
|
||||
func (c *SupermGetStoreAutoCallRiderInfoRequest) GetParamObject() interface{} {
|
||||
return c.Param
|
||||
}
|
||||
|
||||
func (c *SupermGetStoreAutoCallRiderInfoRequest) GetParams() *SupermGetStoreAutoCallRiderInfoParam {
|
||||
return c.Param
|
||||
}
|
||||
|
||||
type SupermGetStoreAutoCallRiderInfoParam struct {
|
||||
StoreID int64 `json:"store_id"` //店铺的门店ID
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package superm_getStoreAutoCallRiderInfo_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
|
||||
type SupermGetStoreAutoCallRiderResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *AutoCallInfo `json:"data"`
|
||||
}
|
||||
|
||||
type AutoCallInfo struct {
|
||||
ServiceStatus int64 `json:"service_status"` //自动呼叫运力设置状态;1:关闭 2:开启
|
||||
ServiceType int64 `json:"service_type"` //自动呼叫运力策略; 0:接单后立即呼叫 1:接单后延迟呼叫
|
||||
DelayTime int64 `json:"delay_time"` //接单后延时呼叫时间,service_type为1时生效,单位min,范围[1,15]
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package superm_setStoreAutoCallRider_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
superm_setStoreAutoCallRider_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/superm_setStoreAutoCallRider/response"
|
||||
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
)
|
||||
|
||||
type SupermSetStoreAutoCallRiderRequest struct {
|
||||
doudian_sdk.BaseDoudianOpApiRequest
|
||||
Param *SupermSetStoreAutoCallRiderParam
|
||||
}
|
||||
|
||||
func (c *SupermSetStoreAutoCallRiderRequest) GetUrlPath() string {
|
||||
return "/superm/setStoreAutoCallRider"
|
||||
}
|
||||
|
||||
func New() *SupermSetStoreAutoCallRiderRequest {
|
||||
request := &SupermSetStoreAutoCallRiderRequest{
|
||||
Param: &SupermSetStoreAutoCallRiderParam{},
|
||||
}
|
||||
request.SetConfig(doudian_sdk.GlobalConfig)
|
||||
request.SetClient(doudian_sdk.DefaultDoudianOpApiClient)
|
||||
return request
|
||||
|
||||
}
|
||||
|
||||
func (c *SupermSetStoreAutoCallRiderRequest) Execute(accessToken *doudian_sdk.AccessToken) (*superm_setStoreAutoCallRider_response.SpermSetStoreAutoCallRiderResponse, error) {
|
||||
responseJson, err := c.GetClient().Request(c, accessToken)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
response := &superm_setStoreAutoCallRider_response.SpermSetStoreAutoCallRiderResponse{}
|
||||
_ = json.Unmarshal([]byte(responseJson), response)
|
||||
return response, nil
|
||||
|
||||
}
|
||||
|
||||
func (c *SupermSetStoreAutoCallRiderRequest) GetParamObject() interface{} {
|
||||
return c.Param
|
||||
}
|
||||
|
||||
func (c *SupermSetStoreAutoCallRiderRequest) GetParams() *SupermSetStoreAutoCallRiderParam {
|
||||
return c.Param
|
||||
}
|
||||
|
||||
type SupermSetStoreAutoCallRiderParam struct {
|
||||
StoreID int64 `json:"store_id"` //店铺的门店ID
|
||||
OpType string `json:"op_type"` //自动呼叫运力设置状态;open 开启 close 关闭
|
||||
ServiceType int64 `json:"service_type"` //自动呼叫运力策略; 0:接单后立即呼叫 1:接单后延迟呼叫
|
||||
DelayTime int64 `json:"delay_time"` //接单后延时呼叫时间,service_type为1时生效,单位分钟,范围[1,15] 延迟时间仅支持1-15分钟
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package superm_setStoreAutoCallRider_response
|
||||
|
||||
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
|
||||
|
||||
type SpermSetStoreAutoCallRiderResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *SupermGetShipmentInfoData `json:"data"`
|
||||
}
|
||||
|
||||
type SupermGetShipmentInfoData struct {
|
||||
}
|
||||
Reference in New Issue
Block a user