- DeleteWrongSpu

This commit is contained in:
gazebo
2019-01-11 12:03:29 +08:00
parent e4b714d1bf
commit 21edb498c3
3 changed files with 70 additions and 0 deletions

View File

@@ -55,3 +55,19 @@ func (c *InitDataController) PullJdOrder() {
return retVal, "", err
})
}
// @Title 删除错误创建的SPU
// @Description 删除错误创建的SPU
// @Param token header string true "认证token"
// @Param toTime formData string true "结束时间"
// @Param isAsync formData bool false "是否异步操作"
// @Param isContinueWhenError formData bool false "单个同步失败是否继续缺省false"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /DeleteWrongSpu [delete]
func (c *InitDataController) DeleteWrongSpu() {
c.callDeleteWrongSpu(func(params *tInitdataDeleteWrongSpuParams) (retVal interface{}, errCode string, err error) {
retVal, err = initdata.DeleteWrongSpu(params.Ctx, params.IsAsync, params.IsContinueWhenError)
return retVal, "", err
})
}