package com.codvision.monitor.controller.manager;

import com.codvision.commoncore.common.ResponseEntity;
import com.codvision.monitor.entity.server.ServerInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 服务器监控数据 管理模块
 *
 * @author lingee
 * @date 2023-11-20
 */
@Api(tags = "平台管理端-服务器监控数据")
@RestController
@RequestMapping("/v1/manager/server")
public class ManagerServerController {

    @ApiOperation(value = "获取服务器信息", notes = "获取服务器信息接口")
    @GetMapping("/info")
    public ResponseEntity<ServerInfo> serverInfo() {
        return new ResponseEntity<ServerInfo>().data(new ServerInfo());
    }
}
