- refactor bad comment
This commit is contained in:
@@ -143,3 +143,22 @@ func (c *InitDataController) ReProcessJdBadComment() {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 刷新
|
||||
// @Description 重新处理京东差评
|
||||
// @Param token header string true "认证token"
|
||||
// @Param fromTime formData string false "起始时间"
|
||||
// @Param toTime formData string false "结束时间"
|
||||
// @Param isAsync formData bool false "是否异步操作"
|
||||
// @Param isContinueWhenError formData bool false "单个同步失败是否继续,缺省false"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /RefreshEbaiBadComment [post]
|
||||
func (c *InitDataController) RefreshEbaiBadComment() {
|
||||
c.callRefreshEbaiBadComment(func(params *tInitdataRefreshEbaiBadCommentParams) (retVal interface{}, errCode string, err error) {
|
||||
if timeList, err := jxutils.BatchStr2Time(params.FromTime, params.ToTime); err == nil {
|
||||
retVal, err = tempop.RefreshEbaiBadComment(params.Ctx, timeList[0], timeList[1], params.IsAsync, params.IsContinueWhenError)
|
||||
}
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user