From 1566e4c7604d85737ea67fe6757e71b8185fa48e Mon Sep 17 00:00:00 2001
From: huang <1532065656@qq.com>
Date: 星期二, 18 十一月 2025 16:52:42 +0800
Subject: [PATCH] 添加设备管理页面,添加测试设备任务监控页面
---
mes-processes/mes-plcSend/src/main/java/com/mes/device/controller/DeviceControlProfileController.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/mes-processes/mes-plcSend/src/main/java/com/mes/device/controller/DeviceControlProfileController.java b/mes-processes/mes-plcSend/src/main/java/com/mes/device/controller/DeviceControlProfileController.java
index 1ebc89b..6dcb2f7 100644
--- a/mes-processes/mes-plcSend/src/main/java/com/mes/device/controller/DeviceControlProfileController.java
+++ b/mes-processes/mes-plcSend/src/main/java/com/mes/device/controller/DeviceControlProfileController.java
@@ -3,15 +3,15 @@
import com.mes.device.service.DeviceControlProfileService;
import com.mes.device.vo.DeviceControlProfile;
import com.mes.vo.Result;
-import io.swagger.v3.oas.annotations.Operation;
-import io.swagger.v3.oas.annotations.tags.Tag;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("device/control")
-@Tag(name = "璁惧鎺у埗鍙傛暟", description = "璁惧鎺у埗鍙傛暟閰嶇疆鎺ュ彛")
+@Api(tags = "璁惧鎺у埗鍙傛暟")
@RequiredArgsConstructor
@Validated
public class DeviceControlProfileController {
@@ -19,13 +19,13 @@
private final DeviceControlProfileService controlProfileService;
@GetMapping("/{deviceId}")
- @Operation(summary = "鑾峰彇璁惧鎺у埗鍙傛暟")
+ @ApiOperation("鑾峰彇璁惧鎺у埗鍙傛暟")
public Result<DeviceControlProfile> getProfile(@PathVariable Long deviceId) {
return Result.success(controlProfileService.getProfile(deviceId));
}
@PostMapping("/{deviceId}")
- @Operation(summary = "鏇存柊璁惧鎺у埗鍙傛暟")
+ @ApiOperation("鏇存柊璁惧鎺у埗鍙傛暟")
public Result<Void> saveProfile(@PathVariable Long deviceId,
@RequestBody DeviceControlProfile profile) {
controlProfileService.updateProfile(deviceId, profile);
--
Gitblit v1.8.0