中国算力平台算力登记系统2.0
YZFG
2024-09-30 43dc2996fd2033991539ed35a0429238829a5417
commit | author | age
43dc29 1 package com.odcc.cpzidc.web.controller.monitor;
Y 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.odcc.cpzidc.common.core.domain.AjaxResult;
8 import com.odcc.cpzidc.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 }