This commit is contained in:
2022-09-11 16:31:32 +08:00
parent fece483438
commit 240684b68d
3 changed files with 26 additions and 20 deletions

View File

@@ -61,6 +61,7 @@ func (a *Api) GetExpressPrice(param *GetExpressPriceReq) (*GetExpressPriceRes, e
return resultData, nil
}
// CreateOrder 创建订单
func (a *Api) CreateOrder(param *MakeOrderReq) (string, error) {
if err := a.CheckTokenExpiration(); err != nil {

View File

@@ -42,26 +42,26 @@ type GetExpressPriceRes struct {
// GetExpressPriceData 获取正儿八经返回值
type GetExpressPriceData struct {
BillWeight int `json:"billWeight"`
Bulk int `json:"bulk"` // 体积抛比系数
ChannelFee float64 `json:"channelFee"` // 渠道价
ChannelName string `json:"channelName"`
Discount float64 `json:"discount"`
Genre int `json:"genre"`
GuarantFee float64 `json:"guarantFee"` // 保价费用
IncrementFee float64 `json:"incrementFee"`
InsuredMsg string `json:"insuredMsg"`
IsInsured bool `json:"isInsured"`
LimitWeight int `json:"limitWeight"`
OriginalFee int `json:"originalFee"` // 原价
PriceA float64 `json:"priceA"` // 价格a
PriceB float64 `json:"priceB"` // 价格b
Remark string `json:"remark"` // 备注
ServiceCharge float64 `json:"serviceCharge"` // 服务费
Type int `json:"type"` // 快递公司type
TypeName string `json:"typeName"` // 快递公司名称
Volume int `json:"volume"`
VolumeWeight int `json:"volumeWeight"`
BillWeight int `json:"billWeight"`
Bulk int `json:"bulk"` // 体积抛比系数
ChannelFee float64 `json:"channelFee"` // 渠道价
ChannelName string `json:"channelName"`
Discount float64 `json:"discount"`
Genre int `json:"genre"`
GuarantFee float64 `json:"guarantFee"` // 保价费用
IncrementFee float64 `json:"incrementFee"`
InsuredMsg string `json:"insuredMsg"`
IsInsured bool `json:"isInsured"`
LimitWeight int `json:"limitWeight"`
OriginalFee interface{} `json:"originalFee"` // 原价
PriceA float64 `json:"priceA"` // 价格a
PriceB float64 `json:"priceB"` // 价格b
Remark string `json:"remark"` // 备注
ServiceCharge float64 `json:"serviceCharge"` // 服务费
Type int `json:"type"` // 快递公司type
TypeName string `json:"typeName"` // 快递公司名称
Volume int `json:"volume"`
VolumeWeight int `json:"volumeWeight"`
}
//#endregion

View File

@@ -1,6 +1,7 @@
package showapi
import (
"fmt"
"testing"
"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)
}