feat: swagger接口文档更新1.0.8
This commit is contained in:
@@ -24,6 +24,15 @@ type MonitorController struct {
|
||||
// 资源监控信息加载
|
||||
//
|
||||
// GET /load
|
||||
//
|
||||
// @Tags monitor
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Success 200 {object} object "Response Results"
|
||||
// @Security ApiKeyAuth
|
||||
// @Summary Resource monitoring information loading
|
||||
// @Description Resource monitoring information loading
|
||||
// @Router /monitor/load [get]
|
||||
func (s *MonitorController) Load(c *gin.Context) {
|
||||
language := ctx.AcceptLanguage(c)
|
||||
var querys struct {
|
||||
|
||||
@@ -22,6 +22,15 @@ type SysCacheController struct{}
|
||||
// Redis信息
|
||||
//
|
||||
// GET /
|
||||
//
|
||||
// @Tags monitor/cache
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Success 200 {object} object "Response Results"
|
||||
// @Security ApiKeyAuth
|
||||
// @Summary Cache Service Information
|
||||
// @Description Cache Service Information
|
||||
// @Router /monitor/cache [get]
|
||||
func (s *SysCacheController) Info(c *gin.Context) {
|
||||
c.JSON(200, result.OkData(map[string]any{
|
||||
"info": redis.Info(""),
|
||||
|
||||
@@ -32,6 +32,15 @@ type SysUserOnlineController struct {
|
||||
// 在线用户列表
|
||||
//
|
||||
// GET /list
|
||||
//
|
||||
// @Tags monitor/online
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Success 200 {object} object "Response Results"
|
||||
// @Security ApiKeyAuth
|
||||
// @Summary System Online User List
|
||||
// @Description System Online User List
|
||||
// @Router /monitor/online/list [get]
|
||||
func (s *SysUserOnlineController) List(c *gin.Context) {
|
||||
language := ctx.AcceptLanguage(c)
|
||||
ipaddr := c.Query("ipaddr")
|
||||
|
||||
@@ -22,6 +22,15 @@ type SystemInfoController struct {
|
||||
// 服务器信息
|
||||
//
|
||||
// GET /
|
||||
//
|
||||
// @Tags monitor
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Success 200 {object} object "Response Results"
|
||||
// @Security ApiKeyAuth
|
||||
// @Summary Server Information
|
||||
// @Description Server Information
|
||||
// @Router /monitor/system-info [get]
|
||||
func (s *SystemInfoController) Info(c *gin.Context) {
|
||||
data := map[string]any{
|
||||
"cpu": s.systemInfogService.CPUInfo(),
|
||||
|
||||
Reference in New Issue
Block a user