1
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -45,7 +45,7 @@ func (c *SupermGetShipmentInfoRequest) GetParams() *SupermGetShipmentInfoParam {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type SupermGetShipmentInfoParam struct {
|
type SupermGetShipmentInfoParam struct {
|
||||||
ShopOrderID int64 `json:"shopOrderID"` //店铺父订单号
|
ShopOrderID int64 `json:"shop_order_id"` //店铺父订单号
|
||||||
//AfterSaleID int64 `json:"afterSaleID"` //售后单号
|
//AfterSaleID int64 `json:"aftersale_id"` //售后单号
|
||||||
ShipmentType int64 `json:"shipmentType"` //履约类型
|
ShipmentType int64 `json:"shipment_type"` //履约类型
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,18 +7,18 @@ type SupermGetShipmentInfoResponse struct {
|
|||||||
Data *SupermGetShipmentInfoData `json:"data"`
|
Data *SupermGetShipmentInfoData `json:"data"`
|
||||||
}
|
}
|
||||||
type ShipmentInfo struct {
|
type ShipmentInfo struct {
|
||||||
ShopOrderID int64 `json:"shopOrderID"` //交易单号
|
ShopOrderID int64 `json:"shop_order_id"` //交易单号
|
||||||
AfterSaleID int64 `json:"afterSaleID"` //售后单号
|
AfterSaleID int64 `json:"aftersale_id"` //售后单号
|
||||||
TrackNo string `json:"trackNo"` //运单号
|
TrackNo string `json:"track_no"` //运单号
|
||||||
ShopID int64 `json:"shopID"` //店铺ID
|
ShopID int64 `json:"shop_id"` //店铺ID
|
||||||
ShipmentStatus int64 `json:"shipmentStatus"` //运单状态
|
ShipmentStatus int64 `json:"shipment_status"` //运单状态
|
||||||
ShipmentError int64 `json:"shipmentError"` //异常状态
|
ShipmentError int64 `json:"shipment_error"` //异常状态
|
||||||
RiderName string `json:"riderName"` //骑手名称
|
RiderName string `json:"rider_name"` //骑手名称
|
||||||
RiderPhone string `json:"riderPhone"` //骑手电话
|
RiderPhone string `json:"rider_phone"` //骑手电话
|
||||||
RiderLongitude string `json:"riderLongitude"` //骑手经度
|
RiderLongitude string `json:"rider_longitude"` //骑手经度
|
||||||
RiderLatitude string `json:"riderLatitude"` //骑手纬度
|
RiderLatitude string `json:"rider_latitude"` //骑手纬度
|
||||||
OccurredTime string `json:"occurredTime"` //当前状态变更时间
|
OccurredTime string `json:"occurred_time"` //当前状态变更时间
|
||||||
}
|
}
|
||||||
type SupermGetShipmentInfoData struct {
|
type SupermGetShipmentInfoData struct {
|
||||||
ShipmentInfo *ShipmentInfo `json:"shipmentInfo"`
|
ShipmentInfo *ShipmentInfo `json:"shipment_info"`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,11 +10,11 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestCreateSubProduct(t *testing.T) {
|
func TestCreateSubProduct(t *testing.T) {
|
||||||
params := `[1,2]`
|
//params := `[1,2]`
|
||||||
var obj []int
|
//var obj []int
|
||||||
err := Strings2Objs(params, &obj)
|
//err := Strings2Objs(params, &obj)
|
||||||
fmt.Println(err)
|
//fmt.Println(err)
|
||||||
fmt.Println(obj)
|
//fmt.Println(obj)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除已经创建商品,重新同步
|
// 删除已经创建商品,重新同步
|
||||||
|
|||||||
@@ -371,8 +371,6 @@ func (a *API) CreateWarehouse(param *warehouse_create_request.WarehouseCreatePar
|
|||||||
response, err := request.Execute(a.accessTokenObj)
|
response, err := request.Execute(a.accessTokenObj)
|
||||||
globals.SugarLogger.Debugf("创建单个区域仓=========:%s", request.GetUrlPath())
|
globals.SugarLogger.Debugf("创建单个区域仓=========:%s", request.GetUrlPath())
|
||||||
globals.SugarLogger.Debugf("创建单个区域仓:=%s", utils.Format4Output(response, false))
|
globals.SugarLogger.Debugf("创建单个区域仓:=%s", utils.Format4Output(response, false))
|
||||||
globals.SugarLogger.Debugf("创建单个区域仓param=%v", request.GetParams())
|
|
||||||
globals.SugarLogger.Debugf("创建单个区域仓param=%v", request.Param.Warehouse.AddressDetail)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package tiktok_api
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"reflect"
|
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -23,25 +22,15 @@ type tete struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Test(t *testing.T) {
|
func Test(t *testing.T) {
|
||||||
//var a []int64
|
//var b interface{}
|
||||||
var b interface{}
|
//x := reflect.TypeOf(b)
|
||||||
//stType := reflect.TypeOf(a)
|
//fmt.Println(reflect.TypeOf(a) == reflect.TypeOf([]int64{}))
|
||||||
//stValue := reflect.ValueOf(a)
|
//switch x {
|
||||||
x := reflect.TypeOf(b)
|
//case reflect.TypeOf([]int64{}):
|
||||||
fmt.Println(reflect.TypeOf(a) == reflect.TypeOf([]int64{}))
|
// fmt.Println(1)
|
||||||
switch x {
|
//case reflect.TypeOf([]string{}):
|
||||||
case reflect.TypeOf([]int64{}):
|
// fmt.Println(2)
|
||||||
|
//}
|
||||||
fmt.Println(1)
|
fmt.Println(50&2, 3&2)
|
||||||
case reflect.TypeOf([]string{}):
|
fmt.Println(50|2, 3|2)
|
||||||
fmt.Println(2)
|
|
||||||
|
|
||||||
}
|
|
||||||
//fmt.Println(stType.NumField())
|
|
||||||
//fmt.Println(stType.Field(0))
|
|
||||||
//temp := stType.Field(0)
|
|
||||||
//fmt.Println(temp.Type)
|
|
||||||
|
|
||||||
//Strings2Objs(`[1262627,1723872383]`, &a)
|
|
||||||
//fmt.Printf("%v", reflect.TypeOf(a).NumField())
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user