admin
2024-11-12 a6316ee0ab82a0f3fc2691f8b5ddbd79e1567086
提交 | 用户 | 时间
a6316e 1 package com.billion.web.controller.monitor;
A 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.billion.common.core.domain.AjaxResult;
8 import com.billion.framework.web.domain.Server;
9
10 /**
11  * 服务器监控
12  * 
13  * @author ruoyi
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 }