feat: swagger接口文档更新1.0.8

This commit is contained in:
TsMask
2025-01-23 15:07:22 +08:00
parent 788e406c32
commit ed9aa17bc3
47 changed files with 16033 additions and 119 deletions

View File

@@ -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 {

View File

@@ -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(""),

View File

@@ -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")

View File

@@ -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(),