dengzedong
2 天以前 66782b7ba787a92b54640cbab0ebd201f0ad9e51
iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/controller/admin/MdkApiController.java
@@ -1,4 +1,5 @@
package com.iailab.module.model.api.controller.admin;
import com.iailab.framework.common.pojo.CommonResult;
import com.iailab.module.model.api.mdk.MdkApi;
import com.iailab.module.model.api.mdk.dto.MdkScheduleReqDTO;
import com.iailab.module.model.api.mdk.dto.MdkScheduleRespDTO;
@@ -32,17 +33,19 @@
    @PostMapping("/schedule-model/out")
    @Operation(summary = "调度模型数据下发")
    public Boolean scheduleModelOut(HttpServletResponse response, HttpServletRequest
    public CommonResult<Boolean> scheduleModelOut(HttpServletResponse response, HttpServletRequest
            request, @RequestBody MdkScheduleRespDTO dto) throws Exception {
        apiSecurityUtils.validate(request);
        return mdkApi.scheduleModelOut(dto);
        Boolean data = mdkApi.scheduleModelOut(dto);
        return CommonResult.success(data);
    }
    @PostMapping("/schedule-result")
    @Operation(summary = "获取调度执行结果,不保存记录")
    public MdkScheduleRespDTO runSchedule(HttpServletResponse response, HttpServletRequest
    public CommonResult<MdkScheduleRespDTO> runSchedule(HttpServletResponse response, HttpServletRequest
            request, @RequestBody MdkScheduleReqDTO reqDTO) throws Exception {
        apiSecurityUtils.validate(request);
        return mdkApi.runSchedule(reqDTO);
        MdkScheduleRespDTO data = mdkApi.runSchedule(reqDTO);
        return CommonResult.success(data);
    }
}