| | |
| | | package com.terra.system.controller.sys; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.terra.system.annotation.SysLog; |
| | | import com.terra.system.controller.all.BaseController; |
| | | import com.terra.system.entity.all.ResponseMsg; |
| | | import com.terra.common.annotation.SysLog; |
| | | import com.terra.common.controller.all.BaseController; |
| | | import com.terra.common.entity.all.ResponseMsg; |
| | | import com.terra.system.entity.sys.ResEntity; |
| | | import com.terra.system.service.all.ScheduleService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import javax.annotation.Resource; |
| | | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import org.springframework.web.bind.annotation.*; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | * @author WWW |
| | | * @date 2022-09-21 |
| | | */ |
| | | @Api(tags = "运维管理\\控制台") |
| | | @Tag(name = "运维管理\\控制台") |
| | | @RestController |
| | | @RequestMapping("/ctrl") |
| | | public class CtrlController extends BaseController { |
| | |
| | | private ScheduleService scheduleService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询服务器状态") |
| | | @Operation(summary = "查询服务器状态") |
| | | @GetMapping(value = "/selectServerStatus") |
| | | public ResponseMsg<JSONObject> selectServerStatus() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询Cpu信息") |
| | | @Operation(summary = "查询Cpu信息") |
| | | @GetMapping(value = "/selectCpuInfo") |
| | | public ResponseMsg<JSONObject> selectCpuInfo() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询内存信息") |
| | | @Operation(summary = "查询内存信息") |
| | | @GetMapping(value = "/selectMemInfo") |
| | | public ResponseMsg<JSONObject> selectMemInfo() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询在线用户") |
| | | @Operation(summary = "查询在线用户") |
| | | @GetMapping(value = "/selectOnlineUsers") |
| | | public ResponseMsg<List<JSONObject>> selectOnlineUsers() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询服务资源状态") |
| | | @Operation(summary = "查询服务资源状态") |
| | | @GetMapping(value = "/selectResStatus") |
| | | public ResponseMsg<List<ResEntity>> selectResStatus() { |
| | | try { |