This commit is contained in:
richboo111
2023-01-12 18:12:48 +08:00
parent 91919f25c4
commit 5610ddb767
6 changed files with 51 additions and 47 deletions

File diff suppressed because one or more lines are too long

View File

@@ -45,7 +45,7 @@ func (c *SupermGetShipmentInfoRequest) GetParams() *SupermGetShipmentInfoParam {
}
type SupermGetShipmentInfoParam struct {
ShopOrderID int64 `json:"shopOrderID"` //店铺父订单号
//AfterSaleID int64 `json:"afterSaleID"` //售后单号
ShipmentType int64 `json:"shipmentType"` //履约类型
ShopOrderID int64 `json:"shop_order_id"` //店铺父订单号
//AfterSaleID int64 `json:"aftersale_id"` //售后单号
ShipmentType int64 `json:"shipment_type"` //履约类型
}

View File

@@ -7,18 +7,18 @@ type SupermGetShipmentInfoResponse struct {
Data *SupermGetShipmentInfoData `json:"data"`
}
type ShipmentInfo struct {
ShopOrderID int64 `json:"shopOrderID"` //交易单号
AfterSaleID int64 `json:"afterSaleID"` //售后单号
TrackNo string `json:"trackNo"` //运单号
ShopID int64 `json:"shopID"` //店铺ID
ShipmentStatus int64 `json:"shipmentStatus"` //运单状态
ShipmentError int64 `json:"shipmentError"` //异常状态
RiderName string `json:"riderName"` //骑手名称
RiderPhone string `json:"riderPhone"` //骑手电话
RiderLongitude string `json:"riderLongitude"` //骑手经度
RiderLatitude string `json:"riderLatitude"` //骑手纬度
OccurredTime string `json:"occurredTime"` //当前状态变更时间
ShopOrderID int64 `json:"shop_order_id"` //交易单号
AfterSaleID int64 `json:"aftersale_id"` //售后单号
TrackNo string `json:"track_no"` //运单号
ShopID int64 `json:"shop_id"` //店铺ID
ShipmentStatus int64 `json:"shipment_status"` //运单状态
ShipmentError int64 `json:"shipment_error"` //异常状态
RiderName string `json:"rider_name"` //骑手名称
RiderPhone string `json:"rider_phone"` //骑手电话
RiderLongitude string `json:"rider_longitude"` //骑手经度
RiderLatitude string `json:"rider_latitude"` //骑手纬度
OccurredTime string `json:"occurred_time"` //当前状态变更时间
}
type SupermGetShipmentInfoData struct {
ShipmentInfo *ShipmentInfo `json:"shipmentInfo"`
ShipmentInfo *ShipmentInfo `json:"shipment_info"`
}

View File

@@ -10,11 +10,11 @@ import (
)
func TestCreateSubProduct(t *testing.T) {
params := `[1,2]`
var obj []int
err := Strings2Objs(params, &obj)
fmt.Println(err)
fmt.Println(obj)
//params := `[1,2]`
//var obj []int
//err := Strings2Objs(params, &obj)
//fmt.Println(err)
//fmt.Println(obj)
}
// 删除已经创建商品,重新同步

View File

@@ -371,8 +371,6 @@ func (a *API) CreateWarehouse(param *warehouse_create_request.WarehouseCreatePar
response, err := request.Execute(a.accessTokenObj)
globals.SugarLogger.Debugf("创建单个区域仓=========:%s", request.GetUrlPath())
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 {
return nil, err
}

View File

@@ -2,7 +2,6 @@ package tiktok_api
import (
"fmt"
"reflect"
"testing"
)
@@ -23,25 +22,15 @@ type tete struct {
}
func Test(t *testing.T) {
//var a []int64
var b interface{}
//stType := reflect.TypeOf(a)
//stValue := reflect.ValueOf(a)
x := reflect.TypeOf(b)
fmt.Println(reflect.TypeOf(a) == reflect.TypeOf([]int64{}))
switch x {
case reflect.TypeOf([]int64{}):
fmt.Println(1)
case reflect.TypeOf([]string{}):
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())
//var b interface{}
//x := reflect.TypeOf(b)
//fmt.Println(reflect.TypeOf(a) == reflect.TypeOf([]int64{}))
//switch x {
//case reflect.TypeOf([]int64{}):
// fmt.Println(1)
//case reflect.TypeOf([]string{}):
// fmt.Println(2)
//}
fmt.Println(50&2, 3&2)
fmt.Println(50|2, 3|2)
}