- 去除无用代码,主要是promotion相关的
This commit is contained in:
@@ -3,6 +3,8 @@ package controllers
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/platformapi/ebaiapi"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/business/jxstore/cms"
|
||||
"git.rosy.net.cn/jx-callback/business/jxstore/misc"
|
||||
"git.rosy.net.cn/jx-callback/business/jxstore/tempop"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/tasksch"
|
||||
@@ -10,8 +12,6 @@ import (
|
||||
"git.rosy.net.cn/jx-callback/business/model/dao"
|
||||
"git.rosy.net.cn/jx-callback/globals/api"
|
||||
"github.com/astaxie/beego"
|
||||
"git.rosy.net.cn/jx-callback/business/jxstore/misc"
|
||||
"git.rosy.net.cn/jx-callback/business/jxstore/cms"
|
||||
)
|
||||
|
||||
type TempOpController struct {
|
||||
@@ -54,35 +54,35 @@ func (c *InitDataController) Change2JDSPU4Store() {
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 将遗留JD订单合并
|
||||
// @Description 将遗留JD订单合并
|
||||
// @Param token header string true "认证token"
|
||||
// @Param isAsync formData bool false "是否异步操作"
|
||||
// @Param isContinueWhenError formData bool false "单个同步失败是否继续,缺省false"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /TransferLegacyJdOrder [post]
|
||||
func (c *InitDataController) TransferLegacyJdOrder() {
|
||||
c.callTransferLegacyJdOrder(func(params *tInitdataTransferLegacyJdOrderParams) (retVal interface{}, errCode string, err error) {
|
||||
retVal, err = tempop.TransferLegacyJdOrder(params.Ctx, params.IsAsync, params.IsContinueWhenError)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
// // @Title 将遗留JD订单合并
|
||||
// // @Description 将遗留JD订单合并
|
||||
// // @Param token header string true "认证token"
|
||||
// // @Param isAsync formData bool false "是否异步操作"
|
||||
// // @Param isContinueWhenError formData bool false "单个同步失败是否继续,缺省false"
|
||||
// // @Success 200 {object} controllers.CallResult
|
||||
// // @Failure 200 {object} controllers.CallResult
|
||||
// // @router /TransferLegacyJdOrder [post]
|
||||
// func (c *InitDataController) TransferLegacyJdOrder() {
|
||||
// c.callTransferLegacyJdOrder(func(params *tInitdataTransferLegacyJdOrderParams) (retVal interface{}, errCode string, err error) {
|
||||
// retVal, err = tempop.TransferLegacyJdOrder(params.Ctx, params.IsAsync, params.IsContinueWhenError)
|
||||
// return retVal, "", err
|
||||
// })
|
||||
// }
|
||||
|
||||
// @Title 将goods_order中缺失的订单从goods_order_original中恢复
|
||||
// @Description 将goods_order中缺失的订单从goods_order_original中恢复
|
||||
// @Param token header string true "认证token"
|
||||
// @Param isAsync formData bool false "是否异步操作"
|
||||
// @Param isContinueWhenError formData bool false "单个同步失败是否继续,缺省false"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /CreateOrderFromOriginal [post]
|
||||
func (c *InitDataController) CreateOrderFromOriginal() {
|
||||
c.callCreateOrderFromOriginal(func(params *tInitdataCreateOrderFromOriginalParams) (retVal interface{}, errCode string, err error) {
|
||||
retVal, err = tempop.CreateOrderFromOriginal(params.Ctx, params.IsAsync, params.IsContinueWhenError)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
// // @Title 将goods_order中缺失的订单从goods_order_original中恢复
|
||||
// // @Description 将goods_order中缺失的订单从goods_order_original中恢复
|
||||
// // @Param token header string true "认证token"
|
||||
// // @Param isAsync formData bool false "是否异步操作"
|
||||
// // @Param isContinueWhenError formData bool false "单个同步失败是否继续,缺省false"
|
||||
// // @Success 200 {object} controllers.CallResult
|
||||
// // @Failure 200 {object} controllers.CallResult
|
||||
// // @router /CreateOrderFromOriginal [post]
|
||||
// func (c *InitDataController) CreateOrderFromOriginal() {
|
||||
// c.callCreateOrderFromOriginal(func(params *tInitdataCreateOrderFromOriginalParams) (retVal interface{}, errCode string, err error) {
|
||||
// retVal, err = tempop.CreateOrderFromOriginal(params.Ctx, params.IsAsync, params.IsContinueWhenError)
|
||||
// return retVal, "", err
|
||||
// })
|
||||
// }
|
||||
|
||||
// @Title 拉取京东订单补齐本地
|
||||
// @Description 拉取京东订单补齐本地
|
||||
@@ -277,7 +277,7 @@ func (c *TempOpController) TestIt() {
|
||||
// @Title 开启或结束所有平台商店的额外时间
|
||||
// @Description 开启或结束所有平台商店的额外时间,并且修改所有商品库存为0或99999(开启:0 , 结束:99999)
|
||||
// @Param token header string true "认证token"
|
||||
// @Param vendorIDs formData string false "运营商ID列表(美团1 饿百3)"
|
||||
// @Param vendorIDs formData string false "运营商ID列表(美团1 饿百3)"
|
||||
// @Param storeIDs formData string false "京西门店ID列表"
|
||||
// @Param startOrEndStore formData bool true "开启或结束"
|
||||
// @Param startTime formData int false "开始营业时间(格式:930代表早上9点30分)"
|
||||
@@ -301,7 +301,7 @@ func (c *TempOpController) TestStartOrEndOpStore() {
|
||||
// @Title 京西平台和其他平台商品的对比
|
||||
// @Description 京西平台和其他平台商品的对比
|
||||
// @Param token header string true "认证token"
|
||||
// @Param vendorIDs formData string false "运营商ID列表(京东0 美团1 饿百3)"
|
||||
// @Param vendorIDs formData string false "运营商ID列表(京东0 美团1 饿百3)"
|
||||
// @Param storeIDs formData string false "京西门店ID列表"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
|
||||
Reference in New Issue
Block a user