From d7fb9e92779e971954ca59b86848569592f6185b Mon Sep 17 00:00:00 2001 From: whycxzp <perryhsu@163.com> Date: 星期四, 07 一月 2021 10:48:35 +0800 Subject: [PATCH] update basic --- src/main/java/com/whyc/controller/CentralMonitorSysCtrlController.java | 28 +++++++++++++++++++++++++--- 1 files changed, 25 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/whyc/controller/CentralMonitorSysCtrlController.java b/src/main/java/com/whyc/controller/CentralMonitorSysCtrlController.java index 30c95a6..5175957 100644 --- a/src/main/java/com/whyc/controller/CentralMonitorSysCtrlController.java +++ b/src/main/java/com/whyc/controller/CentralMonitorSysCtrlController.java @@ -1,9 +1,31 @@ package com.whyc.controller; -/** - * - */ +import com.whyc.dto.Response; +import com.whyc.pojo.CentralMonitorSysCtrl; +import com.whyc.service.CentralMonitorSysCtrlService; +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.RequestParam; +import org.springframework.web.bind.annotation.RestController; + + +@RequestMapping("CentralMonitorSysCtrl") +@RestController +@Api(tags = "闆嗕腑鐩戞帶绯荤粺Ctrl") public class CentralMonitorSysCtrlController { + @Autowired + private CentralMonitorSysCtrlService service; + + @GetMapping("infoByDevId") + @ApiOperation(value = "鏍规嵁璁惧id鑾峰彇Ctrl淇℃伅") + public Response<CentralMonitorSysCtrl> getInfoByDevId(@RequestParam int devId){ + return service.getInfoByDevId(devId); + } + + } -- Gitblit v1.9.1