This commit is contained in:
邹宗楠
2024-08-05 09:57:51 +08:00
parent b3fb7884d7
commit 9cf69ecf0f
8 changed files with 203 additions and 11 deletions

View File

@@ -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
})
}