添加快递渠道
This commit is contained in:
51
controllers/q_bida.go
Normal file
51
controllers/q_bida.go
Normal file
@@ -0,0 +1,51 @@
|
||||
package controllers
|
||||
|
||||
import (
|
||||
bida "git.rosy.net.cn/baseapi/platformapi/q_bida"
|
||||
bidaServer "git.rosy.net.cn/jx-callback/business/q_bida"
|
||||
"github.com/astaxie/beego/server/web"
|
||||
)
|
||||
|
||||
type QBiDaExpressController struct {
|
||||
web.Controller
|
||||
}
|
||||
|
||||
// QueryExpressPrice 查询物业费
|
||||
// @Title Q必达
|
||||
// @Description 查询快递费
|
||||
// @Param token header string false "管理员token"
|
||||
// @Param promiseTimeType formData int true "快递时效产品"
|
||||
// @Param deliveryType formData int true "产品类型"
|
||||
// @Param goodsValue formData int true "保价金额"
|
||||
// @Param receiveAddress formData string true "收件人地址"
|
||||
// @Param sendAddress formData string true "寄件人地址"
|
||||
// @Param type formData int true "快递公司"
|
||||
// @Param weight formData int true "重量kg"
|
||||
// @Param length formData int true "所有包裹累计长"
|
||||
// @Param width formData int true "所有包裹累计宽"
|
||||
// @Param height formData int true "所有包裹累计高"
|
||||
// @Param sendPhone formData string true "寄件人手机号"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /QueryExpressPrice [post]
|
||||
func (c *QBiDaExpressController) QueryExpressPrice() {
|
||||
c.callQueryExpressPrice(func(params *tExpressQueryExpressPriceParams) (interface{}, string, error) {
|
||||
param := &bida.GetExpressPriceReq{
|
||||
PromiseTimeType: params.PromiseTimeType,
|
||||
DeliveryType: params.DeliveryType,
|
||||
GoodsValue: params.GoodsValue,
|
||||
ReceiveAddress: params.ReceiveAddress,
|
||||
SendAddress: params.SendAddress,
|
||||
Type: params.Type,
|
||||
Weight: params.Weight,
|
||||
Length: params.Length,
|
||||
Height: params.Height,
|
||||
Width: params.Width,
|
||||
SendPhone: params.SendPhone,
|
||||
}
|
||||
result, err := bidaServer.QueryExpressPrice(param)
|
||||
return result, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// 添加收货地址
|
||||
Reference in New Issue
Block a user