春风项目四线(合箱线、总装线)
懒羊羊
2024-01-08 fd220719968cd03cf50bb43dfca021ad0d256b4e
提交 | 用户 | 时间
fd2207 1 package com.jcdm.web.controller.monitor;
2
3 import org.springframework.security.access.prepost.PreAuthorize;
4 import org.springframework.web.bind.annotation.GetMapping;
5 import org.springframework.web.bind.annotation.RequestMapping;
6 import org.springframework.web.bind.annotation.RestController;
7 import com.jcdm.common.core.domain.AjaxResult;
8 import com.jcdm.framework.web.domain.Server;
9
10 /**
11  * 服务器监控
12  * 
13  * @author jc
14  */
15 @RestController
16 @RequestMapping("/monitor/server")
17 public class ServerController
18 {
19     @PreAuthorize("@ss.hasPermi('monitor:server:list')")
20     @GetMapping()
21     public AjaxResult getInfo() throws Exception
22     {
23         Server server = new Server();
24         server.copyTo();
25         return AjaxResult.success(server);
26     }
27 }