From 7d64716cb0d406f21cde03976fd273bd07fdc06f Mon Sep 17 00:00:00 2001
From: whycxzp <perryhsu@163.com>
Date: 星期二, 28 九月 2021 11:44:28 +0800
Subject: [PATCH] 更新用户-角色-菜单-权限

---
 src/main/java/com/whyc/controller/DeviceTypeController.java |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/src/main/java/com/whyc/controller/DeviceTypeController.java b/src/main/java/com/whyc/controller/DeviceTypeController.java
index 6110f71..0837ab5 100644
--- a/src/main/java/com/whyc/controller/DeviceTypeController.java
+++ b/src/main/java/com/whyc/controller/DeviceTypeController.java
@@ -6,18 +6,16 @@
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 import java.util.List;
 
 /**
- * 璁惧绫诲瀷
+ * 璁惧绫诲瀷鍙婇�氱敤鍙傛暟
  */
 @RestController
 @RequestMapping("deviceType")
-@Api(tags = "璁惧绫诲瀷")
+@Api(tags = "璁惧绫诲瀷鍙婇�氱敤鍙傛暟")
 public class DeviceTypeController {
 
     @Autowired
@@ -29,4 +27,16 @@
         return service.getAll();
     }
 
+    @GetMapping
+    @ApiOperation(value = "鏌ヨ璁惧绫诲瀷鐨勯�氱敤鍙傛暟")
+    public Response<DeviceType> get(@RequestParam Integer deviceTypeId){
+        return service.get(deviceTypeId);
+    }
+
+    @PutMapping
+    @ApiOperation(value = "淇敼璁惧绫诲瀷鍙傛暟")
+    public Response update(@RequestBody DeviceType deviceType){
+        return service.update(deviceType);
+    }
+
 }

--
Gitblit v1.9.1