添加快递公司

This commit is contained in:
邹宗楠
2022-07-01 17:02:10 +08:00
parent 1ad9113e11
commit 2886cac6bc
2 changed files with 63 additions and 19 deletions

View File

@@ -28,12 +28,12 @@ type QBiDaExpressController struct {
// @Param width formData int false "所有包裹累计宽"
// @Param height formData int false "所有包裹累计高"
// @Param sendPhone formData string true "寄件人手机号"
// @Param channelType formData int true "渠道类型1-快递2-物流3-国际物流4-整车)"
// @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) {
fmt.Println("================", params.MapData)
param := &bida.GetExpressPriceReq{
PromiseTimeType: params.PromiseTimeType,
DeliveryType: params.DeliveryType,
@@ -46,6 +46,7 @@ func (c *QBiDaExpressController) QueryExpressPrice() {
Height: params.Height,
Width: params.Width,
SendPhone: params.SendPhone,
ChannelType: params.ChannelType,
}
result, err := bidaServer.QueryExpressPrice(param)
for _, v := range result {