chore: 并入 iotlcm-admin-svr 历史到 admin-svr/(原提交 49818c6)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package monitor
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/api/monitor/v1"
|
||||
)
|
||||
|
||||
type IMonitorV1 interface {
|
||||
RedisInfo(ctx context.Context, req *v1.RedisInfoReq) (res *v1.RedisInfoRes, err error)
|
||||
MemoryDBRebuild(ctx context.Context, req *v1.MemoryDBRebuildReq) (res *v1.MemoryDBRebuildRes, err error)
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
// Package v1
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <xxx@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package v1
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type RedisInfoReq struct {
|
||||
g.Meta `path:"/cache" method:"get" tags:"监控-缓存监控" summary:"获取缓存监控信息" x-check-permission:"cpm:monitor:cache:list"`
|
||||
}
|
||||
|
||||
type RedisInfoRes struct {
|
||||
DBSize int `json:"dbSize"`
|
||||
CommandStats []*CommandStats `json:"commandStats"`
|
||||
Info map[string]string `json:"info"`
|
||||
}
|
||||
|
||||
type CommandStats struct {
|
||||
Name string `json:"name"`
|
||||
Value string `json:"value"`
|
||||
}
|
||||
|
||||
type MemoryDBRebuildReq struct {
|
||||
g.Meta `path:"/cache/memory/rebuild" method:"post" tags:"监控-缓存监控" summary:"重建系统内存缓存" x-check-permission:"cpr:superadmin"`
|
||||
}
|
||||
|
||||
type MemoryDBRebuildRes struct {
|
||||
Tables int `json:"tables"`
|
||||
}
|
||||
Reference in New Issue
Block a user