From e88fba9645a57535d858ce48da8e9d9a3dc84adc Mon Sep 17 00:00:00 2001 From: dongyukun <1208714201@qq.com> Date: 星期四, 02 一月 2025 16:48:01 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/controller/admin/MdkApiController.java | 39 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 39 insertions(+), 0 deletions(-) diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/controller/admin/MdkApiController.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/controller/admin/MdkApiController.java new file mode 100644 index 0000000..4be5711 --- /dev/null +++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/controller/admin/MdkApiController.java @@ -0,0 +1,39 @@ +package com.iailab.module.model.api.controller.admin; +import com.iailab.module.model.api.mdk.MdkApi; +import com.iailab.module.model.api.mdk.dto.MdkScheduleRespDTO; +import com.iailab.module.model.common.utils.ApiSecurityUtils; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +/** + * @author DongYukun + * @Description + * @createTime 2025年1月2日 + */ +@Slf4j +@RestController +@RequestMapping("/model/api/mdk") +@Tag(name = "数据") +public class MdkApiController { + + @Resource + private ApiSecurityUtils apiSecurityUtils; + + @Autowired + private MdkApi mdkApi; + + @PostMapping("/schedule-model/out") + @Operation(summary = "调度模型数据下发") + public Boolean scheduleModelOut(HttpServletResponse response, HttpServletRequest + request, @RequestBody MdkScheduleRespDTO dto) throws Exception { + apiSecurityUtils.validate(request); + return mdkApi.scheduleModelOut(dto); + } +} \ No newline at end of file -- Gitblit v1.9.3