sdk
This commit is contained in:
@@ -2,6 +2,7 @@ package shop_getStoreFreight_request
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
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"
|
||||
)
|
||||
@@ -27,6 +28,7 @@ func New() *ShopGetStoreFreightRequest {
|
||||
|
||||
func (c *ShopGetStoreFreightRequest) Execute(accessToken *doudian_sdk.AccessToken) (*shop_getStoreFreight_response.ShopGetStoreFreightResponse, error) {
|
||||
responseJson, err := c.GetClient().Request(c, accessToken)
|
||||
fmt.Println(responseJson)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@@ -8,10 +8,6 @@ type WarehouseGetWarehouseByStoreResponse struct {
|
||||
doudian_sdk.BaseDoudianOpApiResponse
|
||||
Data *WarehouseGetWarehouseByStoreData `json:"data"`
|
||||
}
|
||||
type WarehouseGetWarehouseByStoreData struct {
|
||||
// 仓信息map
|
||||
WarehouseInfoMap map[int64][]WarehouseInfoMapItem `json:"warehouse_info_map"`
|
||||
}
|
||||
type WarehouseLocation struct {
|
||||
// 一级地址ID
|
||||
AddressId1 int64 `json:"address_id1"`
|
||||
@@ -53,4 +49,12 @@ type WarehouseInfoMapItem struct {
|
||||
WarehouseType int64 `json:"warehouse_type"`
|
||||
// 绑定的外部围栏ID列表
|
||||
OutFenceIds []string `json:"out_fence_ids"`
|
||||
Latitude float64 `json:"latitude"`
|
||||
Longitude float64 `json:"longitude"`
|
||||
Addresses []string `json:"addresses"`
|
||||
StoreNames []string `json:"store_names"`
|
||||
}
|
||||
type WarehouseGetWarehouseByStoreData struct {
|
||||
// 仓信息map
|
||||
WarehouseInfoMap map[int64][]WarehouseInfoMapItem `json:"warehouse_info_map"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user