| | |
| | | package com.iailab.module.model.api.controller.admin; |
| | | 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; |
| | | import com.iailab.module.model.common.utils.ApiSecurityUtils; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | |
| | | apiSecurityUtils.validate(request); |
| | | return mdkApi.scheduleModelOut(dto); |
| | | } |
| | | |
| | | @PostMapping("/schedule-result") |
| | | @Operation(summary = "获取调度执行结果,不保存记录") |
| | | public MdkScheduleRespDTO runSchedule(HttpServletResponse response, HttpServletRequest |
| | | request, @RequestBody MdkScheduleReqDTO reqDTO) throws Exception { |
| | | apiSecurityUtils.validate(request); |
| | | return mdkApi.runSchedule(reqDTO); |
| | | } |
| | | } |