v1

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteAllLogsReq

type DeleteAllLogsReq struct {
	g.Meta `path:"/system/logs/all" method:"delete" tags:"日志管理" summary:"删除全部日志"`
}

type DeleteAllLogsRes

type DeleteAllLogsRes struct {
	g.Meta `mime:"application/json"`
}

type DeleteAllNotifyReq added in v0.0.2

type DeleteAllNotifyReq struct {
	g.Meta `path:"/system/notify/all" method:"delete" tags:"通知管理" summary:"删除通知"`
}

type DeleteAllNotifyRes added in v0.0.2

type DeleteAllNotifyRes struct {
	g.Meta `mime:"application/json"`
}

type DeleteLogsReq

type DeleteLogsReq struct {
	g.Meta `path:"/system/logs/{id}" method:"delete" tags:"日志管理" summary:"删除日志"`
	Id     *int `json:"" v:"required#system.logs.valid.IDBlank"`
}

type DeleteLogsRes

type DeleteLogsRes struct {
	g.Meta `mime:"application/json"`
}

type DeleteNotifyReq added in v0.0.2

type DeleteNotifyReq struct {
	g.Meta `path:"/system/notify/{id}" method:"delete" tags:"通知管理" summary:"删除通知"`
	Id     *int `json:"id" v:"required#system.notify.valid.IDBlank"`
}

type DeleteNotifyRes added in v0.0.2

type DeleteNotifyRes struct {
	g.Meta `mime:"application/json"`
}

type DeletePushChannelReq added in v0.0.2

type DeletePushChannelReq struct {
	g.Meta `path:"/system/push/channel/{id}" method:"delete" tags:"消息推送" summary:"删除渠道"`
	Id     string `p:"id"  v:"required#system.push.valid.ChannelIDRequired"`
}

type DeletePushChannelRes added in v0.0.2

type DeletePushChannelRes struct {
	g.Meta `mime:"application/json"`
}

type DeleteSysProxyReq added in v0.2.2

type DeleteSysProxyReq struct {
	g.Meta `path:"/system/proxy/{id}" method:"delete" tags:"代理管理" summary:"删除代理"`
	Id     int `json:"id" dc:"id" v:"required#system.proxy.valid.IDRequired"`
}

type DeleteSysProxyRes added in v0.2.2

type DeleteSysProxyRes struct {
	g.Meta `mime:"application/json"`
}

type GetAllProxyReq added in v0.2.2

type GetAllProxyReq struct {
	g.Meta `path:"/system/proxy/list" method:"get" tags:"代理管理" summary:"获取所有代理"`
}

type GetAllProxyRes added in v0.2.2

type GetAllProxyRes struct {
	g.Meta `mime:"application/json"`
	Rows   []*entity.SysProxy `json:"rows"`
}

type GetLangReq added in v0.2.0

type GetLangReq struct {
	g.Meta `path:"/system/lang" method:"get" tags:"系统" summary:"获取系统语言"`
}

type GetLangRes added in v0.2.0

type GetLangRes struct {
	g.Meta `mime:"application/json"`
	Lang   string `json:"lang"`
}

type GetLatestVersionReq

type GetLatestVersionReq struct {
	g.Meta `path:"/system/latestVersion" method:"get" tags:"系统管理" summary:"获取最新版本"`
}

type GetLatestVersionRes

type GetLatestVersionRes struct {
	g.Meta        `mime:"application/json"`
	LatestVersion string `json:"latestVersion"`
}

type GetLogsListReq

type GetLogsListReq struct {
	g.Meta `path:"/system/logs/list" method:"get" tags:"日志管理" summary:"获取日志列表"`
	common.PageReq
	Type   *int   `json:"type" v:"in:1,2#system.logs.valid.TypeInvalid"`
	Status *int   `json:"status" v:"in:0,1#system.logs.valid.StatusInvalid"`
	Sort   string `json:"sort"`
}

type GetLogsListRes

type GetLogsListRes struct {
	g.Meta `mime:"application/json"`
	Rows   []*entity.SysLogs `json:"rows"`
	Total  int               `json:"total"`
}

type GetNotifyListReq added in v0.0.2

type GetNotifyListReq struct {
	g.Meta `path:"/system/notify/list" method:"get" tags:"通知管理" summary:"获取通知列表"`
	common.PageReq
	Status *int `json:"status"`
}

type GetNotifyListRes added in v0.0.2

type GetNotifyListRes struct {
	g.Meta `mime:"application/json"`
	Rows   []*entity.SysNotify `json:"rows"`
	Total  int                 `json:"total"`
}

type GetOverviewReq

type GetOverviewReq struct {
	g.Meta `path:"/system/overview" method:"get" tags:"系统" summary:"获取系统概览"`
}

type GetOverviewRes

type GetOverviewRes struct {
	g.Meta `mime:"application/json"`
	Data   *model.Overview `json:"data"`
}

type GetPushChannelListReq added in v0.0.2

type GetPushChannelListReq struct {
	g.Meta `path:"/system/push/channel/list" method:"get" tags:"消息推送" summary:"渠道列表"`
	common.PageReq
	Name string `p:"name"`
	Type string `p:"type"`
}

type GetPushChannelListRes added in v0.0.2

type GetPushChannelListRes struct {
	g.Meta `mime:"application/json"`
	Rows   []*entity.PushChannel `json:"rows"`
	Total  int                   `json:"total"`
}

type GetPushChannelReq added in v0.0.2

type GetPushChannelReq struct {
	g.Meta `path:"/system/push/channel/{id}" method:"get" tags:"消息推送" summary:"获取渠道信息"`
	Id     int `p:"id"  v:"required#system.push.valid.ChannelIDRequired"`
}

type GetPushChannelRes added in v0.0.2

type GetPushChannelRes struct {
	g.Meta `mime:"application/json"`
	*model.PushChannel
}

type GetSysSettingsReq added in v0.0.9

type GetSysSettingsReq struct {
	g.Meta `path:"/system/settings" method:"get" tags:"系统管理" summary:"获取系统配置"`
	Key    string `json:"key" v:"required#system.settings.valid.KeyRequired"`
}

type GetSysSettingsRes added in v0.0.9

type GetSysSettingsRes struct {
	g.Meta `mime:"application/json"`
	Data   map[string]int `json:"data"`
}

type GetTerminalLogsListReq added in v0.2.2

type GetTerminalLogsListReq struct {
	g.Meta `path:"/system/logs/terminal" method:"get" tags:"日志管理" summary:"获取终端日志"`
	Since  int64 `json:"since"`
	Limit  int   `json:"limit" v:"required|min:1|max:100"`
}

type GetTerminalLogsListRes added in v0.2.2

type GetTerminalLogsListRes struct {
	g.Meta `mime:"application/json"`
	Rows   []*LogItem `json:"rows"`
	Next   int64      `json:"next"`
}

type LogItem added in v0.2.2

type LogItem struct {
	Time  int64  `json:"time"`
	Level string `json:"level"`
	Msg   string `json:"msg"`
}

type PostPushChannelReq added in v0.0.2

type PostPushChannelReq struct {
	g.Meta  `path:"/system/push/channel" method:"post" tags:"消息推送" summary:"添加渠道"`
	Name    string                   `json:"name" v:"required#system.push.valid.ChannelNameRequired"`
	Type    string                   `` /* 148-byte string literal not displayed */
	Status  int                      `json:"status" v:"required#system.push.valid.ChannelStatusRequired"`
	Url     string                   `json:"url" v:"required-if:type,gotify#system.push.valid.UrlRequired"`
	Remark  string                   `json:"remark" v:"max-length:45#system.push.valid.RemarkLength"`
	Email   *PushChannelEmailModel   `json:"email" v:"required-if:type,email"`
	Webhook *PushChannelWebhookModel `json:"webhook" v:"required-if:type,lark,type,dingTalk,type,weCom"`
}

type PostPushChannelRes added in v0.0.2

type PostPushChannelRes struct {
	g.Meta `mime:"application/json"`
}

type PostSysProxyReq added in v0.2.2

type PostSysProxyReq struct {
	g.Meta   `path:"/system/proxy" method:"post" tags:"代理管理" summary:"添加代理"`
	Platform string   `json:"platform" dc:"平台" v:"required#system.proxy.valid.PlatformRequired"`
	Proxy    []string `json:"proxy" dc:"代理" v:"required#system.proxy.valid.ProxyRequired"`
	Remark   string   `json:"remark" dc:"备注" v:"max-length:45#system.proxy.valid.RemarkMaxLength"`
}

type PostSysProxyRes added in v0.2.2

type PostSysProxyRes struct {
	g.Meta `mime:"application/json"`
}

type PushChannelEmailModel added in v0.0.2

type PushChannelEmailModel struct {
	Sender   string `json:"sender" v:"required|email#system.push.valid.EmailSenderRequired|system.push.valid.EmailFormatInvalid"`
	Receiver string `json:"receiver" v:"required#system.push.valid.EmailReceiverRequired"`
	Server   string `json:"server" v:"required#system.push.valid.EmailServerRequired"`
	Port     int    `json:"port" v:"required#system.push.valid.EmailPortRequired"`
	AuthCode string `json:"authCode" v:"required#system.push.valid.EmailAuthCodeRequired"`
}

type PushChannelWebhookModel added in v0.0.10

type PushChannelWebhookModel struct {
	WebhookUrl  string `json:"webhookUrl" v:"required|url#system.push.valid.WebhookUrlRequired|system.push.valid.WebhookUrlFormatInvalid"`
	MessageType int    `json:"messageType" v:"required|in:0,1,2#system.push.valid.MessageTypeRequired|system.push.valid.MessageTypeInvalid"`
	Sign        string `json:"sign"`
	At          string `json:"at"`
}

type PutMarkNotifyAllReadReq added in v0.0.2

type PutMarkNotifyAllReadReq struct {
	g.Meta `path:"/system/notify/all" method:"put" tags:"通知管理" summary:"全部标记已读"`
}

type PutMarkNotifyAllReadRes added in v0.0.2

type PutMarkNotifyAllReadRes struct {
	g.Meta `mime:"application/json"`
}

type PutMarkNotifyReadReq added in v0.0.2

type PutMarkNotifyReadReq struct {
	g.Meta `path:"/system/notify/{id}" method:"put" tags:"通知管理" summary:"标记已读"`
	Id     *int `json:"id" v:"required#system.notify.valid.IDBlank"`
}

type PutMarkNotifyReadRes added in v0.0.2

type PutMarkNotifyReadRes struct {
	g.Meta `mime:"application/json"`
}

type PutPushChannelReq added in v0.0.2

type PutPushChannelReq struct {
	g.Meta  `path:"/system/push/channel" method:"put" tags:"消息推送" summary:"修改渠道"`
	Id      int                      `json:"id" v:"required#system.push.valid.ChannelIDRequired"`
	Name    string                   `json:"name" v:"required#system.push.valid.ChannelNameRequired"`
	Type    string                   `` /* 148-byte string literal not displayed */
	Status  int                      `json:"status" v:"required#system.push.valid.ChannelStatusRequired"`
	Url     string                   `json:"url" v:"required-if:type,gotify#system.push.valid.UrlRequired"`
	Remark  string                   `json:"remark" v:"max-length:45#system.push.valid.RemarkLength"`
	Email   *PushChannelEmailModel   `json:"email" v:"required-if:type,email"`
	Webhook *PushChannelWebhookModel `json:"webhook" v:"required-if:type,lark,type,dingTalk,type,weCom"`
}

type PutPushChannelRes added in v0.0.2

type PutPushChannelRes struct {
	g.Meta `mime:"application/json"`
}

type PutSysProxyReq added in v0.2.2

type PutSysProxyReq struct {
	g.Meta `path:"/system/proxy" method:"put" tags:"代理管理" summary:"修改代理"`
	Id     int      `json:"id" dc:"id" v:"required#system.proxy.valid.IDRequired"`
	Proxy  []string `json:"proxy" dc:"代理" v:"required#system.proxy.valid.ProxyRequired"`
	Remark string   `json:"remark" dc:"备注" v:"max-length:45#system.proxy.valid.RemarkMaxLength"`
}

type PutSysProxyRes added in v0.2.2

type PutSysProxyRes struct {
	g.Meta `mime:"application/json"`
}

type PutSysSettingsReq added in v0.0.9

type PutSysSettingsReq struct {
	g.Meta `path:"/system/settings" method:"put" tags:"系统管理" summary:"修改系统配置"`
	Key    string `json:"key" v:"required#system.settings.valid.KeyRequired"`
	Value  int    `json:"value" v:"required#system.settings.valid.ValueRequired"`
}

type PutSysSettingsRes added in v0.0.9

type PutSysSettingsRes struct {
	g.Meta `mime:"application/json"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL