|
|
|
package router
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
"recook/internal/v2/controller/task"
|
|
|
|
)
|
|
|
|
|
|
|
|
// @Style recook任务
|
|
|
|
func routerTask(taskRouter *gin.RouterGroup) {
|
|
|
|
goodsController := task.Goods{}
|
|
|
|
pushNewGoods := task.PushNewGoods{}
|
|
|
|
//taskRouter.GET("goods/AddGoods", pushNewGoods.AddGoods)
|
|
|
|
taskRouter.GET("goods/sendGoods", pushNewGoods.SendNewGoods) // 发送未设置售价商品邮件
|
|
|
|
taskRouter.GET("goods/associate", goodsController.Update) // 关联更新
|
|
|
|
taskRouter.GET("goods/sync", goodsController.Sync) // jcook商品更新
|
|
|
|
taskRouter.GET("goods/fix", goodsController.Fix) // jcook图片修复
|
|
|
|
taskRouter.GET("goods/publish", goodsController.Publish) // 更新商品上下级状态
|
|
|
|
taskRouter.GET("goods/openSearchV2", goodsController.OpenSearchV2)
|
|
|
|
taskRouter.GET("goods/attr", goodsController.AttrSync) // jcook规格修复
|
|
|
|
taskRouter.GET("goods/tax", goodsController.TaxSync) // jcook tax修复
|
|
|
|
|
|
|
|
taskRouter.GET("weibo/sync", goodsController.WeiboSync) // 微博数据同步
|
|
|
|
|
|
|
|
taskRouter.POST("zip/sync", goodsController.ZipSync)
|
|
|
|
|
|
|
|
taskRouter.GET("shaMaSync", goodsController.ShaMaSync) // 瑞库客供应链商品同步
|
|
|
|
|
|
|
|
taskRouter.GET("shaMaPriceSync", goodsController.ShaMaPrice)
|
|
|
|
|
|
|
|
supplyController := task.Supply{}
|
|
|
|
{
|
|
|
|
taskRouter.GET("supply/sync", supplyController.SyncAll) // 全量同步供应链商品
|
|
|
|
}
|
|
|
|
}
|