You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
903 B
26 lines
903 B
package router
|
|
|
|
import (
|
|
"recook/internal/v2/controller/task"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// @Style recook任务
|
|
func routerTask(taskRouter *gin.RouterGroup) {
|
|
goodsController := &task.Goods{}
|
|
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/openSearch", goodsController.OpenSearch) // 更新openSearch
|
|
taskRouter.GET("goods/attr", goodsController.AttrSync) // jcook规格修复
|
|
|
|
taskRouter.GET("weibo/sync", goodsController.WeiboSync) // 微博数据同步
|
|
|
|
taskRouter.POST("zip/sync", goodsController.ZipSync)
|
|
|
|
taskRouter.GET("shaMaSync", goodsController.ShaMaSync)
|
|
}
|