| | |
| | | |
| | | import com.iailab.module.model.api.mdk.dto.*; |
| | | import com.iailab.module.model.enums.ApiConstants; |
| | | import com.iailab.framework.common.pojo.CommonResult; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | |
| | | import javax.validation.Valid; |
| | |
| | | * @createTime 2024年08月26日 |
| | | */ |
| | | @FeignClient(name = ApiConstants.NAME) |
| | | @Tag(name = "RPC 服务 - MDK") |
| | | @Tag(name = "RPC 服务 - 模型调用接口") |
| | | public interface MdkApi { |
| | | |
| | | String PREFIX = ApiConstants.PREFIX + "/mdk"; |
| | | |
| | | @GetMapping(PREFIX + "/predict-module") |
| | | @Operation(summary = "模块预测") |
| | | CommonResult<MdkPredictModuleRespDTO> predictModule(@Valid @RequestBody MdkPredictReqDTO reqDTO); |
| | | @PostMapping(PREFIX + "/predict-module") |
| | | @Operation(summary = "执行模块预测") |
| | | MdkPredictModuleRespDTO predictModule(@Valid @RequestBody MdkPredictReqDTO reqDTO); |
| | | |
| | | @GetMapping(PREFIX + "/predict-item") |
| | | @Operation(summary = "单独预测") |
| | | CommonResult<MdkPredictItemRespDTO> predictItem(@Valid @RequestBody MdkPredictReqDTO reqDTO); |
| | | @PostMapping(PREFIX + "/predict-item") |
| | | @Operation(summary = "执行单独预测") |
| | | MdkPredictItemRespDTO predictItem(@Valid @RequestBody MdkPredictReqDTO reqDTO); |
| | | |
| | | @GetMapping(PREFIX + "/predict-auto-adjust") |
| | | @PostMapping(PREFIX + "/predict-adjust") |
| | | @Operation(summary = "预测自动调整") |
| | | CommonResult<Boolean> predictAutoAdjust(@Valid @RequestBody MdkPredictReqDTO reqDTO); |
| | | Boolean predictAutoAdjust(@Valid @RequestBody MdkPredictReqDTO reqDTO); |
| | | |
| | | |
| | | @GetMapping(PREFIX + "/schedule") |
| | | @Operation(summary = "执行调度") |
| | | CommonResult<MdkScheduleRespDTO> doSchedule(@Valid @RequestBody MdkScheduleReqDTO reqDTO); |
| | | @PostMapping(PREFIX + "/schedule-scheme") |
| | | @Operation(summary = "执行调度方案") |
| | | MdkScheduleRespDTO doSchedule(@Valid @RequestBody MdkScheduleReqDTO reqDTO); |
| | | } |