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 | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/whyc/controller/DeviceInfController.java b/src/main/java/com/whyc/controller/DeviceInfController.java index affa4be..ec0fe0f 100644 --- a/src/main/java/com/whyc/controller/DeviceInfController.java +++ b/src/main/java/com/whyc/controller/DeviceInfController.java @@ -1,11 +1,12 @@ 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; -import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; @@ -26,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