You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
870 B
28 lines
870 B
package com.ruoyi.web.controller.monitor; |
|
|
|
import org.springframework.security.access.prepost.PreAuthorize; |
|
import org.springframework.web.bind.annotation.GetMapping; |
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
import org.springframework.web.bind.annotation.RestController; |
|
import com.ruoyi.common.core.controller.BaseController; |
|
import com.ruoyi.common.core.domain.AjaxResult; |
|
import com.ruoyi.framework.web.domain.Server; |
|
|
|
/** |
|
* 服务器监控 |
|
* |
|
* @author ruoyi |
|
*/ |
|
@RestController |
|
@RequestMapping("/monitor/server") |
|
public class ServerController extends BaseController |
|
{ |
|
@PreAuthorize("@ss.hasPermi('monitor:server:list')") |
|
@GetMapping() |
|
public AjaxResult getInfo() throws Exception |
|
{ |
|
Server server = new Server(); |
|
server.copyTo(); |
|
return AjaxResult.success(server); |
|
} |
|
}
|
|
|