添加物理信息
This commit is contained in:
165
platformapi/q_bida/q_bida_params.go
Normal file
165
platformapi/q_bida/q_bida_params.go
Normal file
@@ -0,0 +1,165 @@
|
||||
package q_bida
|
||||
|
||||
// PublicParams 公共参数
|
||||
type PublicParams struct {
|
||||
Code int64 `json:"code"`
|
||||
Msg string `json:"msg"`
|
||||
}
|
||||
|
||||
// LoginParamsRes 登录返回参数
|
||||
type LoginParamsRes struct {
|
||||
PublicParams
|
||||
Data *struct {
|
||||
Genre int64 `json:"genre"` // genre
|
||||
Token string `json:"token"` // token
|
||||
IsVerify interface{} `json:"is_verify"` // isVerify
|
||||
} `json:"data"`
|
||||
}
|
||||
|
||||
//#region 获取快递费
|
||||
|
||||
// GetExpressPriceReq 获取快递费请求参数
|
||||
type GetExpressPriceReq struct {
|
||||
Type int `json:"type"` // 快递公司
|
||||
PromiseTimeType int `json:"promiseTimeType"` // 快递时效产品
|
||||
DeliveryType int `json:"deliveryType"` // 产品类型
|
||||
GoodsValue float64 `json:"goodsValue"` // 保价金额
|
||||
ReceiveAddress string `json:"receiveAddress"` // 收件人地址
|
||||
SendAddress string `json:"sendAddress"` // 寄件人地址
|
||||
Weight int `json:"weight"` // 重量kg
|
||||
Length int `json:"length"` // 所有包裹累计长cm
|
||||
Height int `json:"height"` // 所有包裹累计高cm
|
||||
Width int `json:"width"` // 所有包裹累计宽cm(向上取整)
|
||||
SendPhone string `json:"sendPhone"` // 寄件人手机号
|
||||
}
|
||||
|
||||
// GetExpressPriceRes 获取快递费返回值
|
||||
type GetExpressPriceRes struct {
|
||||
PublicParams
|
||||
Data *GetExpressPriceData `json:"data"`
|
||||
}
|
||||
|
||||
// GetExpressPriceData 获取正儿八经返回值
|
||||
type GetExpressPriceData struct {
|
||||
ChannelFee float64 `json:"channel_fee"` // 渠道价
|
||||
Bulk int64 `json:"bulk"` // 体积抛比系数
|
||||
ServiceCharge float64 `json:"service_charge"` // 服务费
|
||||
GuarantFee float64 `json:"guarant_fee"` // 保价费用
|
||||
OriginalFee float64 `json:"original_fee"` // 原价
|
||||
}
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region 下单
|
||||
|
||||
// MakeOrderReq 下订单请求参数
|
||||
type MakeOrderReq struct {
|
||||
PromiseTimeType int `json:"promiseTimeType"` // 快递时效产品
|
||||
DeliveryType int `json:"deliveryType"` // 产品类型
|
||||
Goods string `json:"goods"` // 商品名称
|
||||
GuaranteeValueAmount float64 `json:"guaranteeValueAmount"` // 保价金额
|
||||
Weight int `json:"weight"` // 重量kg
|
||||
Length int `json:"length"` // 所有包裹累计长cm
|
||||
Height int `json:"height"` // 所有包裹累计高cm
|
||||
Width int `json:"width"` // 所有包裹累计宽cm(向上取整)
|
||||
OrderSendTime string `json:"orderSendTime"` // 预约时间
|
||||
PackageNum int `json:"packageNum"` // 包裹数量
|
||||
ReceiveAddress string `json:"receiveAddress"` // 收件人地址
|
||||
ReceiveName string `json:"receiveName"` // 收件人姓名
|
||||
ReceivePhone string `json:"receivePhone"` // 收件人手机号
|
||||
Remark string `json:"remark"` // 运单备注
|
||||
SenderAddress string `json:"senderAddress"` // 寄件人地址
|
||||
SenderName string `json:"senderName"` // 寄件人姓名
|
||||
SenderPhone string `json:"senderPhone"` // 寄件人手机号
|
||||
ThirdPlatform int `json:"thirdPlatform"` // 第三方平台-京东商家下单传3
|
||||
Type int `json:"type"` // 快递公司
|
||||
Img string `json:"img"` // 包裹图片
|
||||
}
|
||||
|
||||
// MakeOrderRes 下订单返回参数
|
||||
type MakeOrderRes struct {
|
||||
PublicParams
|
||||
OrderNo string `json:"order_no"` // 订单编号
|
||||
}
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region 取消订单
|
||||
|
||||
// CancelOrderReq 取消订单参数
|
||||
type CancelOrderReq struct {
|
||||
Genre int `json:"genre"` // 1-取消,2-关闭
|
||||
OrderNo string `json:"orderNo"` // 订单编号
|
||||
Type int `json:"type"` // 快递公司
|
||||
}
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region 订单详情
|
||||
|
||||
// GetOrderDetailReq 获取订单详情
|
||||
type GetOrderDetailReq struct {
|
||||
Type int `json:"type"` // 快递公司
|
||||
OrderNo string `json:"orderNo"` // 订单号
|
||||
}
|
||||
|
||||
// GetOrderDetailRes 订单详情返回值
|
||||
type GetOrderDetailRes struct {
|
||||
PublicParams
|
||||
Data *OrderDetail
|
||||
}
|
||||
|
||||
type OrderDetail struct {
|
||||
ChangeFee float64 // 转寄费用
|
||||
ConsumeFee float64 // 耗材费元
|
||||
CopyText string // 复制信息
|
||||
CreateDate string // 下单时间
|
||||
ExpressFee string // 快递费元 (元)
|
||||
FeeStatus string // 费用状态0下单费用冻结中 ,非0下单费用已扣
|
||||
Goods string // 物品
|
||||
GuaranteeValueAmount float64 // 保价金额
|
||||
InsuranceFee float64 // 保价费元
|
||||
IsForward bool // 是否转寄单0否1是(转寄单额外收取50%运费)
|
||||
IsLimit bool // 是否超限0否1是
|
||||
OriginalFee float64 // 官方原价
|
||||
OtherFee float64 // 其他费用
|
||||
OverWeightStatus int // 超重状态
|
||||
PackageNum int // 包裹数
|
||||
ReceiveAddress string // 收件人地址
|
||||
ReceiveCity string // 收件人地址城市
|
||||
ReceiveName string // 收件人名称
|
||||
ReceivePhone string // 收件人电话
|
||||
SenderAddress string // 寄件人地址
|
||||
SenderCity string // 寄件人地址城市
|
||||
SenderName string // 寄件人姓名
|
||||
SenderPhone string // 寄件人电话
|
||||
Soliciter string // 揽件员
|
||||
Status int // 状态0预下单1待取件2运输中5已签收6取消订单7终止揽收
|
||||
StatusName string // 状态名称
|
||||
TotalFee string // 总费用元
|
||||
PayFee float64 // 实际支付费用元
|
||||
TraceList []*TraceListDetail // 快递详情列表
|
||||
TrackingNum string // 运单号
|
||||
Type int // 快递公司 0:京东 1:德邦
|
||||
Volume int // 体积cm3
|
||||
VolumeRemark string // 体积重量计算说明
|
||||
VolumeWeight int // 体积重量Kg
|
||||
Weight int // 下单重量Kg
|
||||
WeightActual int // 实际重量Kg
|
||||
WeightBill int // 计费重量Kg
|
||||
WeightStatus int // 超重状态
|
||||
Yuanjia int // 快递费
|
||||
}
|
||||
|
||||
type TraceListDetail struct {
|
||||
Courier string // 快递员
|
||||
CourierTel string // 快递员电话
|
||||
OpeName string // 操作人
|
||||
OpeRemark string // 操作详情
|
||||
OpeTime string // 操作时间
|
||||
OpeTimeAll string //
|
||||
OpeTitle string //
|
||||
WaybillCode string // 运单号
|
||||
}
|
||||
|
||||
//#endregion
|
||||
Reference in New Issue
Block a user