Commit f229451e authored by linpeiqin's avatar linpeiqin

增加接口免登录白名单注释

parent bc070476
......@@ -7,6 +7,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.github.pagehelper.page.PageMethod;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.yice.common.core.annotation.MyRequestBody;
import com.yice.common.core.annotation.NoAuthInterface;
import com.yice.common.core.constant.ErrorCodeEnum;
import com.yice.common.core.object.*;
import com.yice.common.core.util.MyCommonUtil;
......@@ -245,14 +246,20 @@ public class TuningRunController {
*
* @return 应答结果对象,包含查询结果集。
*/
@NoAuthInterface
@OperationLog(type = SysOperationLogType.UPLOAD, saveResponse = false)
@PostMapping("/postRunStatus")
public ResponseResult<Void> postRunStatus(@MyRequestBody Long runId,
@MyRequestBody Long runTime,
@MyRequestBody Integer runStatus) {
String errorMessage;
TuningRun tuningRun = this.tuningRunService.getById(runId);
if (tuningRun == null) {
errorMessage = "数据验证失败,当前微调运行并不存在,请联系管理员!";
return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage);
}
tuningRun.setRunStatus(runStatus);
tuningRun.setRunTime(runTime);
String errorMessage;
if (!tuningRunService.updateById(tuningRun)) {
errorMessage = "运行状态信息提交错误!";
return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment