提交 | 用户 | 时间
|
7fd198
|
1 |
package com.iailab.module.model.api.mdk; |
潘 |
2 |
|
|
3 |
import com.iailab.module.model.api.mdk.dto.*; |
|
4 |
import com.iailab.module.model.enums.ApiConstants; |
|
5 |
import io.swagger.v3.oas.annotations.Operation; |
|
6 |
import io.swagger.v3.oas.annotations.tags.Tag; |
|
7 |
import org.springframework.cloud.openfeign.FeignClient; |
c860df
|
8 |
import org.springframework.web.bind.annotation.PostMapping; |
7fd198
|
9 |
import org.springframework.web.bind.annotation.RequestBody; |
潘 |
10 |
|
|
11 |
import javax.validation.Valid; |
|
12 |
|
|
13 |
/** |
|
14 |
* @author PanZhibao |
|
15 |
* @Description |
|
16 |
* @createTime 2024年08月26日 |
|
17 |
*/ |
|
18 |
@FeignClient(name = ApiConstants.NAME) |
c860df
|
19 |
@Tag(name = "RPC 服务 - 模型调用接口") |
7fd198
|
20 |
public interface MdkApi { |
潘 |
21 |
|
|
22 |
String PREFIX = ApiConstants.PREFIX + "/mdk"; |
|
23 |
|
c860df
|
24 |
@PostMapping(PREFIX + "/predict-module") |
潘 |
25 |
@Operation(summary = "执行模块预测") |
|
26 |
MdkPredictModuleRespDTO predictModule(@Valid @RequestBody MdkPredictReqDTO reqDTO); |
7fd198
|
27 |
|
c860df
|
28 |
@PostMapping(PREFIX + "/predict-item") |
潘 |
29 |
@Operation(summary = "执行单独预测") |
|
30 |
MdkPredictItemRespDTO predictItem(@Valid @RequestBody MdkPredictReqDTO reqDTO); |
7fd198
|
31 |
|
c860df
|
32 |
@PostMapping(PREFIX + "/predict-adjust") |
7fd198
|
33 |
@Operation(summary = "预测自动调整") |
c860df
|
34 |
Boolean predictAutoAdjust(@Valid @RequestBody MdkPredictReqDTO reqDTO); |
7fd198
|
35 |
|
c860df
|
36 |
@PostMapping(PREFIX + "/schedule-scheme") |
潘 |
37 |
@Operation(summary = "执行调度方案") |
|
38 |
MdkScheduleRespDTO doSchedule(@Valid @RequestBody MdkScheduleReqDTO reqDTO); |
7fd198
|
39 |
} |