From 4f3a98f19143865cdc1de4791e8a95d96bd40c65 Mon Sep 17 00:00:00 2001
From: maven <2163098428@qq.com>
Date: 星期五, 01 八月 2025 13:27:59 +0800
Subject: [PATCH] yys 密码已重置

---
 cnas-device/src/main/java/com/ruoyi/device/controller/DeviceExternalApplyController.java |   84 ++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 84 insertions(+), 0 deletions(-)

diff --git a/cnas-device/src/main/java/com/ruoyi/device/controller/DeviceExternalApplyController.java b/cnas-device/src/main/java/com/ruoyi/device/controller/DeviceExternalApplyController.java
new file mode 100644
index 0000000..c52361d
--- /dev/null
+++ b/cnas-device/src/main/java/com/ruoyi/device/controller/DeviceExternalApplyController.java
@@ -0,0 +1,84 @@
+package com.ruoyi.device.controller;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.ruoyi.common.core.domain.Result;
+import com.ruoyi.device.pojo.DeviceExternalApply;
+import com.ruoyi.device.service.DeviceExternalApplyService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.AllArgsConstructor;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import java.util.Map;
+
+/**
+ * <p>
+ * 鍒╃敤澶栭儴璁惧鐢宠琛� 鍓嶇鎺у埗鍣�
+ * </p>
+ *
+ * @author 姹熻嫃榈烽洀缃戠粶绉戞妧鏈夐檺鍏徃
+ * @since 2024-12-17 10:28:43
+ */
+@Api(tags = "鍒╃敤澶栭儴璁惧鐢宠琛�")
+@AllArgsConstructor
+@RestController
+@RequestMapping("/deviceExternalApply")
+public class DeviceExternalApplyController {
+
+    private DeviceExternalApplyService deviceExternalApplyService;
+
+
+    /**
+     * 鍒╃敤澶栭儴璁惧鐢宠鍒楄〃
+     * @return
+     */
+    @ApiOperation(value = "鍒╃敤澶栭儴璁惧鐢宠鍒楄〃")
+    @GetMapping("/pageDeviceExternalApply")
+    public Result<IPage<DeviceExternalApply>> pageDeviceExternalApply(Page page, DeviceExternalApply deviceExternalApply) throws Exception {
+        return Result.success(deviceExternalApplyService.pageDeviceExternalApply(page, deviceExternalApply));
+    }
+
+    /**
+     * 鏌ヨ鍒╃敤澶栭儴璁惧鐢宠
+     * @return
+     */
+    @ApiOperation(value = "鏌ヨ鍒╃敤澶栭儴璁惧鐢宠")
+    @GetMapping("/getDeviceExternalApply")
+    public Result getDeviceExternalApply(Integer externalApplyId){
+        return Result.success(deviceExternalApplyService.getById(externalApplyId));
+    }
+
+    /**
+     * 鍒犻櫎鍒╃敤澶栭儴璁惧鐢宠
+     * @return
+     */
+    @ApiOperation(value = "鍒犻櫎鍒╃敤澶栭儴璁惧鐢宠")
+    @DeleteMapping("/delDeviceExternalApply")
+    public Result delDeviceExternalApply(Integer externalApplyId){
+        return Result.success(deviceExternalApplyService.removeById(externalApplyId));
+    }
+
+    /**
+     * 鏂板鍒╃敤澶栭儴璁惧鐢宠
+     * @return
+     */
+    @ApiOperation(value = "鏂板鍒╃敤澶栭儴璁惧鐢宠")
+    @PostMapping("/addDeviceExternalApply")
+    public Result addDeviceExternalApply(@RequestBody DeviceExternalApply deviceExternalApply){
+        return Result.success(deviceExternalApplyService.addDeviceExternalApply(deviceExternalApply));
+    }
+
+    /**
+     * 瀵煎嚭鍒╃敤澶栭儴璁惧鐢宠
+     * @param externalApplyId 澶栭儴璁惧鐢宠id
+     * @return
+     */
+    @ApiOperation(value = "瀵煎嚭鍒╃敤澶栭儴璁惧鐢宠")
+    @GetMapping("/exportDeviceExternalApply")
+    public Result exportDeviceExternalApply(Integer externalApplyId, HttpServletResponse response){
+        deviceExternalApplyService.exportDeviceExternalApply(externalApplyId, response);
+        return Result.success();
+    }
+}

--
Gitblit v1.9.3