提交 | 用户 | 时间
|
95066d
|
1 |
package com.iailab.module.model.api.controller.admin; |
D |
2 |
import com.iailab.module.model.api.mdk.MdkApi; |
|
3 |
import com.iailab.module.model.api.mdk.dto.MdkScheduleRespDTO; |
|
4 |
import com.iailab.module.model.common.utils.ApiSecurityUtils; |
|
5 |
import io.swagger.v3.oas.annotations.Operation; |
|
6 |
import io.swagger.v3.oas.annotations.tags.Tag; |
|
7 |
import lombok.extern.slf4j.Slf4j; |
|
8 |
import org.springframework.beans.factory.annotation.Autowired; |
|
9 |
import org.springframework.web.bind.annotation.*; |
|
10 |
|
|
11 |
import javax.annotation.Resource; |
|
12 |
import javax.servlet.http.HttpServletRequest; |
|
13 |
import javax.servlet.http.HttpServletResponse; |
|
14 |
|
|
15 |
/** |
|
16 |
* @author DongYukun |
|
17 |
* @Description |
|
18 |
* @createTime 2025年1月2日 |
|
19 |
*/ |
|
20 |
@Slf4j |
|
21 |
@RestController |
|
22 |
@RequestMapping("/model/api/mdk") |
|
23 |
@Tag(name = "数据") |
|
24 |
public class MdkApiController { |
|
25 |
|
|
26 |
@Resource |
|
27 |
private ApiSecurityUtils apiSecurityUtils; |
|
28 |
|
|
29 |
@Autowired |
|
30 |
private MdkApi mdkApi; |
|
31 |
|
|
32 |
@PostMapping("/schedule-model/out") |
|
33 |
@Operation(summary = "调度模型数据下发") |
|
34 |
public Boolean scheduleModelOut(HttpServletResponse response, HttpServletRequest |
|
35 |
request, @RequestBody MdkScheduleRespDTO dto) throws Exception { |
|
36 |
apiSecurityUtils.validate(request); |
|
37 |
return mdkApi.scheduleModelOut(dto); |
|
38 |
} |
|
39 |
} |