package com.lij.himeeter.web.controller.monitor;

import com.lij.himeeter.common.core.domain.AjaxResult;
import com.lij.himeeter.framework.web.domain.Server;
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;

/**
 * <pre>
 *
 * 文件名 :  ServerCtrl
 * 创建时间 : 2025年01月06日 04:32
 *
 * 文件描述 : 服务器监控
 *
 * </pre>
 *
 * @author Nobita
 * @version 1.0.0
 */

@RestController
@RequestMapping("/monitor/server")
public class ServerCtrl {

    @PreAuthorize("@ss.hasPermi('monitor:server:list')")
    @GetMapping()
    public AjaxResult getInfo() throws Exception {
        Server server = new Server();
        server.copyTo();
        return AjaxResult.success(server);
    }
}
