1
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
package controllers
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/business/bidding"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
"git.rosy.net.cn/jx-callback/globals/api"
|
||||
"github.com/astaxie/beego/server/web"
|
||||
)
|
||||
|
||||
@@ -28,7 +32,7 @@ func (c *BiddingController) GetBiddingMsg() {
|
||||
})
|
||||
}
|
||||
|
||||
// 获取退货账单
|
||||
// GetRefundOrderList 获取退货账单
|
||||
// @Title 获取招标信息
|
||||
// @Description 获取招标信息
|
||||
// @Param token header string true "认证token"
|
||||
@@ -43,3 +47,37 @@ func (c *BiddingController) GetRefundOrderList() {
|
||||
return data, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// GetStoreBindStatus 查询门店是否绑定成功,成功之后创建本地门店
|
||||
// 查询门店是否绑定成功,成功之后创建本地门店
|
||||
// @Title 查询门店是否绑定成功,成功之后创建本地门店
|
||||
// @Description 查询门店是否绑定成功,成功之后创建本地门店
|
||||
// @Param token header string true "认证token"
|
||||
// @Param platformId query string false "授权成功平台id"
|
||||
// @Param platformType query int false "授权平台id"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetStoreBindStatus [get]
|
||||
func (c *BiddingController) GetStoreBindStatus() {
|
||||
c.callGetStoreBindStatus(func(params *tBindGetStoreBindStatusParams) (interface{}, string, error) {
|
||||
switch params.PlatformType {
|
||||
case model.VendorIDMTWM:
|
||||
data, err := api.Mtwm2API.GetBoundList(params.PlatformId)
|
||||
if err != nil {
|
||||
return nil, "", err
|
||||
}
|
||||
for _, v := range data {
|
||||
if v.AppID == utils.Str2Int(params.PlatformId) {
|
||||
return data, "", nil
|
||||
}
|
||||
}
|
||||
return nil, "", errors.New("未查询到绑定数据,请检查美团门店id是否正确")
|
||||
case model.VendorIDEBAI:
|
||||
|
||||
case model.VendorIDJD:
|
||||
case model.VendorIDTT:
|
||||
|
||||
}
|
||||
return nil, "", nil
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user