1
This commit is contained in:
@@ -61,6 +61,7 @@ func (a *Api) GetExpressPrice(param *GetExpressPriceReq) (*GetExpressPriceRes, e
|
|||||||
return resultData, nil
|
return resultData, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// CreateOrder 创建订单
|
// CreateOrder 创建订单
|
||||||
func (a *Api) CreateOrder(param *MakeOrderReq) (string, error) {
|
func (a *Api) CreateOrder(param *MakeOrderReq) (string, error) {
|
||||||
if err := a.CheckTokenExpiration(); err != nil {
|
if err := a.CheckTokenExpiration(); err != nil {
|
||||||
|
|||||||
@@ -42,26 +42,26 @@ type GetExpressPriceRes struct {
|
|||||||
|
|
||||||
// GetExpressPriceData 获取正儿八经返回值
|
// GetExpressPriceData 获取正儿八经返回值
|
||||||
type GetExpressPriceData struct {
|
type GetExpressPriceData struct {
|
||||||
BillWeight int `json:"billWeight"`
|
BillWeight int `json:"billWeight"`
|
||||||
Bulk int `json:"bulk"` // 体积抛比系数
|
Bulk int `json:"bulk"` // 体积抛比系数
|
||||||
ChannelFee float64 `json:"channelFee"` // 渠道价
|
ChannelFee float64 `json:"channelFee"` // 渠道价
|
||||||
ChannelName string `json:"channelName"`
|
ChannelName string `json:"channelName"`
|
||||||
Discount float64 `json:"discount"`
|
Discount float64 `json:"discount"`
|
||||||
Genre int `json:"genre"`
|
Genre int `json:"genre"`
|
||||||
GuarantFee float64 `json:"guarantFee"` // 保价费用
|
GuarantFee float64 `json:"guarantFee"` // 保价费用
|
||||||
IncrementFee float64 `json:"incrementFee"`
|
IncrementFee float64 `json:"incrementFee"`
|
||||||
InsuredMsg string `json:"insuredMsg"`
|
InsuredMsg string `json:"insuredMsg"`
|
||||||
IsInsured bool `json:"isInsured"`
|
IsInsured bool `json:"isInsured"`
|
||||||
LimitWeight int `json:"limitWeight"`
|
LimitWeight int `json:"limitWeight"`
|
||||||
OriginalFee int `json:"originalFee"` // 原价
|
OriginalFee interface{} `json:"originalFee"` // 原价
|
||||||
PriceA float64 `json:"priceA"` // 价格a
|
PriceA float64 `json:"priceA"` // 价格a
|
||||||
PriceB float64 `json:"priceB"` // 价格b
|
PriceB float64 `json:"priceB"` // 价格b
|
||||||
Remark string `json:"remark"` // 备注
|
Remark string `json:"remark"` // 备注
|
||||||
ServiceCharge float64 `json:"serviceCharge"` // 服务费
|
ServiceCharge float64 `json:"serviceCharge"` // 服务费
|
||||||
Type int `json:"type"` // 快递公司type
|
Type int `json:"type"` // 快递公司type
|
||||||
TypeName string `json:"typeName"` // 快递公司名称
|
TypeName string `json:"typeName"` // 快递公司名称
|
||||||
Volume int `json:"volume"`
|
Volume int `json:"volume"`
|
||||||
VolumeWeight int `json:"volumeWeight"`
|
VolumeWeight int `json:"volumeWeight"`
|
||||||
}
|
}
|
||||||
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package showapi
|
package showapi
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
@@ -49,3 +50,7 @@ func TestSplitProductSpec(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Test111(t *testing.T) {
|
||||||
|
fmt.Println(23&16!=0)
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user