1
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"git.rosy.net.cn/jx-callback/business/authz/autils"
|
||||
"git.rosy.net.cn/jx-callback/business/partner/purchase/mtwm"
|
||||
"strings"
|
||||
|
||||
"git.rosy.net.cn/baseapi/platformapi/mtwmapi"
|
||||
@@ -330,20 +331,38 @@ func (c *StoreController) TmpGetJxBadComments() {
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 根据cookie获取美团差评订单id(多店)不一定准确
|
||||
// @Description 根据cookie获取美团差评订单id(多店)
|
||||
// @Param token header string true "认证token"
|
||||
// @Param vendorID query int false "厂商ID(缺省为全部)"
|
||||
// @Param userName query string true "平台账号id"
|
||||
// @Param appOrgCode query string true "平台号"
|
||||
// @Param fromTime query string true "创建起始时间"
|
||||
// @Param toTime query string true "创建结束时间"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetOrderID4Comment [get]
|
||||
func (c *StoreController) GetOrderID4Comment() {
|
||||
c.callGetOrderID4Comment(func(params *tStoreGetOrderID4CommentParams) (retVal interface{}, errCode string, err error) {
|
||||
err = mtwm.GetMtwmCommentList4ShanGou(params.UserName, params.AppOrgCode, params.FromTime, params.ToTime)
|
||||
return nil, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 得到门店快递映射信息
|
||||
// @Description 得到门店快递映射信息
|
||||
// @Param token header string true "认证token"
|
||||
// @Param storeID query int true "门店ID"
|
||||
// @Param vendorID query int false "厂商ID(缺省为全部)"
|
||||
// @Param vendorId query int false "平台id"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetStoreCourierMaps [get]
|
||||
func (c *StoreController) GetStoreCourierMaps() {
|
||||
c.callGetStoreCourierMaps(func(params *tStoreGetStoreCourierMapsParams) (retVal interface{}, errCode string, err error) {
|
||||
if c.GetString("vendorID") == "" {
|
||||
params.VendorID = -1
|
||||
params.VendorId = -1
|
||||
}
|
||||
retVal, err = cms.GetStoreCourierMaps(params.Ctx, nil, params.StoreID, params.VendorID)
|
||||
retVal, err = cms.GetStoreCourierMaps(params.Ctx, nil, params.StoreID, params.VendorId)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user