添加下单接口
This commit is contained in:
@@ -2,6 +2,7 @@ package controllers
|
||||
|
||||
import (
|
||||
bida "git.rosy.net.cn/baseapi/platformapi/q_bida"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
bidaServer "git.rosy.net.cn/jx-callback/business/q_bida"
|
||||
"github.com/astaxie/beego/server/web"
|
||||
)
|
||||
@@ -78,6 +79,38 @@ func (c *QBiDaExpressController) QueryExpressPrice() {
|
||||
// @router /CreateWayOrder [post]
|
||||
func (c *QBiDaExpressController) CreateWayOrder() {
|
||||
c.callCreateWayOrder(func(params *tExpressCreateWayOrderParams) (interface{}, string, error) {
|
||||
param := &model.MakeOrderParamReq{
|
||||
PromiseTimeType: params.PromiseTimeType,
|
||||
DeliveryType: params.DeliveryType,
|
||||
Goods: params.Goods,
|
||||
GuaranteeValueAmount: params.GuaranteeValueAmount,
|
||||
Weight: params.Weight,
|
||||
Length: params.Length,
|
||||
Height: params.Height,
|
||||
Width: params.Width,
|
||||
OrderSendTime: params.OrderSendTime,
|
||||
PackageNum: params.PackageNum,
|
||||
ReceiveAddress: params.ReceiveAddress,
|
||||
ReceiveName: params.ReceiveName,
|
||||
ReceivePhone: params.ReceivePhone,
|
||||
Remark: params.Remark,
|
||||
SenderAddress: params.SenderAddress,
|
||||
SenderName: params.SenderName,
|
||||
SenderPhone: params.SenderPhone,
|
||||
ThirdPlatform: params.ThirdPlatform,
|
||||
Type: params.Type,
|
||||
ReceiveAddressId: 0,
|
||||
SenderAddressID: 0,
|
||||
ChannelType: 0,
|
||||
Img: "",
|
||||
ChannelFee: 0,
|
||||
Bulk: 0,
|
||||
ServiceCharge: 0,
|
||||
GuarantFee: 0,
|
||||
OriginalFee: 0,
|
||||
Increment: 0,
|
||||
}
|
||||
bidaServer.CreateWayOrder(c.Ctx, params)
|
||||
return nil, "", nil
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user