wujian
2024-02-22 268beb4ebc1e5b8d4ad715b71cd64a0944073a87
提交 | 用户 | 时间
268beb 1 package com.jcdm.web.controller.monitor;
W 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 }