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/DeviceInfController.java |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/whyc/controller/DeviceInfController.java b/src/main/java/com/whyc/controller/DeviceInfController.java
index fb101ad..ec0fe0f 100644
--- a/src/main/java/com/whyc/controller/DeviceInfController.java
+++ b/src/main/java/com/whyc/controller/DeviceInfController.java
@@ -1,7 +1,9 @@
 package com.whyc.controller;
 
+import com.whyc.dto.DeviceInfDTO;
+import com.whyc.dto.DeviceTypeDTO;
 import com.whyc.dto.Response;
-import com.whyc.dto.SystemInfDTO;
+import com.whyc.pojo.DeviceInf;
 import com.whyc.service.DeviceInfService;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
@@ -13,11 +15,11 @@
 import java.util.List;
 
 /**
- * 璁惧淇℃伅琛�
+ * 鍦ㄧ嚎璁惧淇℃伅琛�
  */
 @RestController
 @RequestMapping("deviceInf")
-@Api(tags = "璁惧淇℃伅")
+@Api(tags = "鍦ㄧ嚎璁惧淇℃伅")
 public class DeviceInfController {
 
     @Autowired
@@ -25,8 +27,14 @@
 
     @GetMapping("all")
     @ApiOperation(value = "鏌ヨ鎵�鏈夎澶囦俊鎭�")
-    public Response<List<SystemInfDTO>> getAll(){
+    public Response<List<DeviceTypeDTO>> getAll(){
         return service.getAll();
     }
 
+    @GetMapping("getListBySystemId")
+    @ApiOperation(value = "璁惧淇℃伅by璁惧绫诲埆")
+    public Response<List<DeviceInf>> getListBySystemId(Integer systemId){
+        return service.getListBySystemId(systemId);
+    }
+
 }

--
Gitblit v1.9.1