对比新文件 |
| | |
| | | package com.doumee.api.system; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.core.annotation.trace.Trace; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.utils.Monitor; |
| | | import com.doumee.core.utils.Utils; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * @author Eva.Caesar Liu |
| | | * @date 2023/03/21 14:49 |
| | | */ |
| | | @Api(tags = "绯荤粺鐩戝惉") |
| | | @Trace(exclude = true) |
| | | @RestController |
| | | @RequestMapping("/system/monitor") |
| | | public class SystemMonitorController extends BaseController { |
| | | |
| | | @ApiOperation("鑾峰彇绯荤粺淇℃伅") |
| | | @GetMapping("/getSystemInfo") |
| | | @RequiresPermissions("system:monitor:query") |
| | | public ApiResponse<Monitor> getSystemInfo () { |
| | | return ApiResponse.success(Utils.Monitor.current()); |
| | | } |
| | | } |