懒羊羊
2024-01-31 e57a8990ae56f657a59c435a0613c5f7a8728003
提交 | 用户 | 时间
e57a89 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 }