You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.1 KiB
46 lines
1.1 KiB
3 years ago
|
package order
|
||
3 years ago
|
|
||
|
import (
|
||
|
"git.oa00.com/go/jcook-sdk/api/rest"
|
||
|
)
|
||
|
|
||
|
// GetFeeRequest 获取物流费用请求.
|
||
|
type GetFeeRequest struct {
|
||
|
CtpProtocol rest.CtpProtocol `json:"protocol"`
|
||
|
ApiFreightFeeParam ApiFreightFeeParam `json:"apiFreightFeeParam"`
|
||
|
}
|
||
|
|
||
|
type ApiFreightFeeParam struct {
|
||
3 years ago
|
Address rest.Address `json:"address"`
|
||
|
Pin string `json:"pin"`
|
||
|
PaymentType uint `json:"paymentType"`
|
||
|
OrderFee float64 `json:"orderFee"`
|
||
|
SkuList []rest.SkuParam `json:"skuList"`
|
||
3 years ago
|
}
|
||
|
|
||
|
func (o GetFeeRequest) GetApiName() string {
|
||
|
return "jingdong.ctp.order.getFreightFee"
|
||
|
}
|
||
|
|
||
|
func (o GetFeeRequest) GetRespName() string {
|
||
|
return "jingdong_ctp_order_getFreightFee_responce"
|
||
|
}
|
||
|
|
||
|
func (o GetFeeRequest) GetRespObj() interface{} {
|
||
|
return GetFeeResponse{}
|
||
|
}
|
||
|
|
||
|
// GetFeeResponse 获取物流费用
|
||
|
type GetFeeResponse struct {
|
||
|
Result struct {
|
||
|
Data GetFeeParams `json:"data"`
|
||
|
ErrCode uint `json:"errCode"`
|
||
|
ErrMsg string `json:"errMsg"`
|
||
|
Success bool `json:"success"`
|
||
|
} `json:"result"`
|
||
|
}
|
||
|
|
||
|
type GetFeeParams struct {
|
||
|
FreightFee float64 `json:"freightFee"`
|
||
|
}
|