v1

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 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#日志ID不能为空"`
}

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#通知ID不能为空"`
}

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#渠道ID不能为空"`
}

type DeletePushChannelRes added in v0.0.2

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

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#日志类型错误"`
	Status *int   `json:"status" v:"in:0,1#日志状态错误"`
	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#渠道ID不能为空"`
}

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#键名不能为空"`
}

type GetSysSettingsRes added in v0.0.9

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

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#渠道名称不能为空"`
	Type    string                   `p:"type" json:"type" v:"required|in:gotify,email,lark,dingTalk,weCom#渠道类型不能为空|不支持的渠道类型"`
	Status  int                      `json:"status" v:"required#渠道启用状态不能为空"`
	Url     string                   `json:"url" v:"required-if:type,gotify#Url不能为空"`
	Remark  string                   `json:"remark" v:"max-length:45#备注最大长度为45"`
	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 PushChannelEmailModel added in v0.0.2

type PushChannelEmailModel struct {
	Sender   string `json:"sender" v:"required|email#发送邮箱不能为空|邮箱格式不正确"`
	Receiver string `json:"receiver" v:"required#接收邮箱不能为空"`
	Server   string `json:"server" v:"required#邮箱服务器不能为空"`
	Port     int    `json:"port" v:"required#邮箱端口不能为空"`
	AuthCode string `json:"authCode" v:"required#邮箱授权码不能为空"`
}

type PushChannelWebhookModel added in v0.0.10

type PushChannelWebhookModel struct {
	WebhookUrl  string `json:"webhookUrl" v:"required|url#webhookUrl不能为空|webhookUrl格式不正确"`
	MessageType int    `json:"messageType" v:"required|in:0,1,2#消息类型不能为空|消息类型参数不正确"`
	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#通知ID不能为空"`
}

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#渠道ID不能为空"`
	Name    string                   `json:"name" v:"required#渠道名称不能为空"`
	Type    string                   `p:"type" json:"type" v:"required|in:gotify,email,lark,dingTalk,weCom#渠道类型不能为空|不支持的渠道类型"`
	Status  int                      `json:"status" v:"required#渠道启用状态不能为空"`
	Url     string                   `json:"url" v:"required-if:type,gotify#Url不能为空"`
	Remark  string                   `json:"remark" v:"max-length:45#备注最大长度为45"`
	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 PutSysSettingsReq added in v0.0.9

type PutSysSettingsReq struct {
	g.Meta `path:"/system/settings" method:"put" tags:"系统管理" summary:"修改系统配置"`
	Key    string `json:"key" v:"required#键名不能为空"`
	Value  int    `json:"value" v:"required#值不能为空"`
}

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