Documentation
¶
Index ¶
- type APISearch
- type AlertHistorySearch
- type AlertRuleSearch
- type AppConfigControlRequest
- type AppConfigGroupRequest
- type AuditLogSearch
- type ColumnType
- type DepartmentSearch
- type FakeCaptchaRequest
- type FakeCaptchaResponse
- type FieldSearch
- type GenerateParams
- type GetAuthorizeRequest
- type GetAuthorizeResponse
- type GithubControlReq
- type GithubGetResp
- type LanguageSearch
- type LoginLogSearch
- type LoginResponse
- type MenuBindAPIRequest
- type MenuSearch
- type ModelCreateMenuRequest
- type ModelGenerateDataRequest
- type ModelSearch
- type MonitorCPUInfo
- type MonitorConnectionCount
- type MonitorNetwork
- type MonitorResponse
- type MonitorRuntime
- type NoticeSearch
- type OauthCallbackReq
- type OauthGetLoginURLReq
- type OauthToken
- type OptionSearch
- type PasswordResetRequest
- type PostSearch
- type RegisterRequest
- type RegisterResponse
- type ResetPasswordRequest
- type ResponseNonce
- type RoleSearch
- type SetAuthorizeRequest
- type StatisticsGetRequest
- type StatisticsGetResponse
- type StatisticsItem
- type SystemConfigSearch
- type TaskFuncItem
- type TaskOperateRequest
- type TaskSearch
- type TemplateGenerateReq
- type TemplateGenerateResp
- type TemplateGetBranchesReq
- type TemplateGetBranchesResp
- type TemplateGetParamsReq
- type TemplateGetParamsResp
- type TemplateGetPathReq
- type TemplateGetPathResp
- type TemplateParam
- type TemplateParams
- type TenantSearch
- type UpdateAuthorizeRequest
- type UpdateAvatarResponse
- type UpdateUserInfoRequest
- type UserAuthTokenGenerateRequest
- type UserConfigControlRequest
- type UserConfigGroupRequest
- type UserSearch
- type ValueEnumType
- type VirtualModelObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APISearch ¶
type APISearch struct {
actions.Pagination `search:"inline"`
// ID
ID string `query:"id" form:"id" search:"type:contains;column:id"`
}
type AlertHistorySearch ¶ added in v0.7.0
type AlertHistorySearch struct {
Current int `form:"current" json:"current"`
PageSize int `form:"pageSize" json:"pageSize"`
RuleID string `form:"ruleId" json:"ruleId"`
Status string `form:"status" json:"status"`
}
func (*AlertHistorySearch) GetPage ¶ added in v0.7.0
func (e *AlertHistorySearch) GetPage() int64
func (*AlertHistorySearch) GetPageSize ¶ added in v0.7.0
func (e *AlertHistorySearch) GetPageSize() int64
type AlertRuleSearch ¶ added in v0.7.0
type AlertRuleSearch struct {
Current int `form:"current" json:"current"`
PageSize int `form:"pageSize" json:"pageSize"`
Name string `form:"name" json:"name"`
Metric string `form:"metric" json:"metric"`
Status string `form:"status" json:"status"`
}
func (*AlertRuleSearch) GetPage ¶ added in v0.7.0
func (e *AlertRuleSearch) GetPage() int64
func (*AlertRuleSearch) GetPageSize ¶ added in v0.7.0
func (e *AlertRuleSearch) GetPageSize() int64
type AppConfigControlRequest ¶
type AppConfigGroupRequest ¶
type AppConfigGroupRequest struct {
Group string `uri:"group" binding:"required"`
}
type AuditLogSearch ¶ added in v0.7.0
type AuditLogSearch struct {
Current int `form:"current" json:"current"`
PageSize int `form:"pageSize" json:"pageSize"`
UserID string `form:"userID" json:"userID"`
Username string `form:"username" json:"username"`
Type string `form:"type" json:"type"`
Action string `form:"action" json:"action"`
Resource string `form:"resource" json:"resource"`
IP string `form:"ip" json:"ip"`
Status string `form:"status" json:"status"`
}
func (*AuditLogSearch) GetPage ¶ added in v0.7.0
func (e *AuditLogSearch) GetPage() int64
func (*AuditLogSearch) GetPageSize ¶ added in v0.7.0
func (e *AuditLogSearch) GetPageSize() int64
type ColumnType ¶
type ColumnType struct {
Title string `json:"title"`
DataIndex string `json:"dataIndex"`
HideInForm bool `json:"hideInForm,omitempty"`
HideInTable bool `json:"hideInTable,omitempty"`
HideInDescriptions bool `json:"hideInDescriptions,omitempty"`
ValueEnum map[string]ValueEnumType `json:"valueEnum,omitempty"`
ValueType string `json:"valueType,omitempty"`
ValidateRules []pkg.BaseRule `json:"validateRules,omitempty"`
PK bool `json:"pk,omitempty"`
}
type DepartmentSearch ¶
type DepartmentSearch struct {
actions.Pagination `search:"inline"`
// ID
ID string `query:"id" form:"id" search:"type:contains;column:id"`
// Name 名称
Name string `query:"name" form:"name" search:"type:contains;column:name"`
// ParentID 父级部门ID
ParentID string `query:"parentID" form:"parentID" search:"type:exact;column:parent_id"`
}
type FakeCaptchaRequest ¶
type FakeCaptchaResponse ¶
type FakeCaptchaResponse struct {
Status string `json:"status"`
}
type FieldSearch ¶
type FieldSearch struct {
actions.Pagination `search:"inline"`
// ID
ID string `query:"id" form:"id" search:"type:contains;column:id"`
// Name 名称
Name string `query:"name" form:"name" search:"type:contains;column:name"`
// ModelID 模型id
ModelID string `query:"modelID" form:"modelID" search:"type:exact;column:model_id"`
}
type GenerateParams ¶
type GetAuthorizeRequest ¶
type GetAuthorizeRequest struct {
RoleID string `uri:"roleID" binding:"required"`
}
type GetAuthorizeResponse ¶
type GithubControlReq ¶
type GithubControlReq struct {
//github密码或者token
Password string `json:"password" binding:"required"`
}
type GithubGetResp ¶
type LanguageSearch ¶
type LanguageSearch struct {
actions.Pagination `search:"inline"`
// ID
ID string `query:"id" form:"id" search:"type:contains;column:id"`
//名称
Name string `query:"name" form:"name" search:"type:contains;column:name"`
}
type LoginLogSearch ¶ added in v0.7.0
type LoginLogSearch struct {
Current int `form:"current" json:"current"`
PageSize int `form:"pageSize" json:"pageSize"`
UserID string `form:"userID" json:"userID"`
Username string `form:"username" json:"username"`
IP string `form:"ip" json:"ip"`
Status string `form:"status" json:"status"`
}
func (*LoginLogSearch) GetPage ¶ added in v0.7.0
func (e *LoginLogSearch) GetPage() int64
func (*LoginLogSearch) GetPageSize ¶ added in v0.7.0
func (e *LoginLogSearch) GetPageSize() int64
type LoginResponse ¶
type MenuBindAPIRequest ¶
type MenuSearch ¶
type MenuSearch struct {
actions.Pagination `search:"inline"`
// ID id
ID string `query:"id" form:"id" search:"type:contains;column:id"`
// Name 名称
Name string `query:"name" form:"name" search:"type:contains;column:name"`
// Status 状态
Status enum.Status `query:"status" form:"status" search:"type:exact;column:status"`
// ParentID 父级id
ParentID string `query:"parentID" form:"parentID" search:"-"`
// Type 类型
Type []string `query:"type[]" form:"type[]" search:"type:in;column:type"`
// Show 是否显示
Show bool `query:"show" form:"show" search:"type:exact;column:hide_in_menu"`
}
type ModelCreateMenuRequest ¶
type ModelSearch ¶
type ModelSearch struct {
actions.Pagination `search:"inline"`
// ID
ID string `query:"id" form:"id" search:"type:contains;column:id"`
//名称
Name string `query:"name" form:"name" search:"type:contains;column:name"`
}
type MonitorCPUInfo ¶
type MonitorConnectionCount ¶ added in v0.7.0
type MonitorNetwork ¶ added in v0.7.0
type MonitorNetwork struct {
// BytesSent 发送字节数
BytesSent uint64 `json:"bytesSent"`
// BytesRecv 接收字节数
BytesRecv uint64 `json:"bytesRecv"`
// PacketsSent 发送包数
PacketsSent uint64 `json:"packetsSent"`
// PacketsRecv 接收包数
PacketsRecv uint64 `json:"packetsRecv"`
// Errin 接收错误数
Errin uint64 `json:"errin"`
// Errout 发送错误数
Errout uint64 `json:"errout"`
// Dropin 接收丢包数
Dropin uint64 `json:"dropin"`
// Dropout 发送丢包数
Dropout uint64 `json:"dropout"`
// Connections 连接数
Connections []net.ConnectionStat `json:"connections,omitempty"`
// ConnectionCount 连接数统计
ConnectionCount *MonitorConnectionCount `json:"connectionCount,omitempty"`
}
type MonitorResponse ¶
type MonitorResponse struct {
// CPUPhysicalCore CPU物理核心数
CPUPhysicalCore int `json:"cpuPhysicalCore"`
// CPULogicalCore CPU逻辑核心数
CPULogicalCore int `json:"cpuLogicalCore"`
// CPUUsage CPU使用率百分比(保留2位小数)
CPUUsage float64 `json:"cpuUsage"`
// CPUInfo CPU信息
CPUInfo []MonitorCPUInfo `json:"cpuInfo"`
// MemoryTotal 内存总量
MemoryTotal uint64 `json:"memoryTotal"`
// MemoryUsage 内存使用量
MemoryUsage uint64 `json:"memoryUsage"`
// MemoryUsagePercent 内存使用率(保留2位小数)
MemoryUsagePercent float64 `json:"memoryUsagePercent"`
// MemoryAvailable 内存可用量
MemoryAvailable uint64 `json:"memoryAvailable"`
// MemoryFree 内存空闲量
MemoryFree uint64 `json:"memoryFree"`
// DiskTotal 磁盘总量(bytes)
DiskTotal uint64 `json:"diskTotalBytes"`
// DiskTotalGB 磁盘总量(GB, 保留2位小数)
DiskTotalGB float64 `json:"diskTotal"`
// DiskUsage 磁盘使用量(bytes)
DiskUsage uint64 `json:"diskUsageBytes"`
// DiskUsageGB 磁盘使用量(GB, 保留2位小数)
DiskUsageGB float64 `json:"diskUsage"`
// DiskUsagePercent 磁盘使用率(保留2位小数)
DiskUsagePercent float64 `json:"diskUsagePercent"`
// Network 网络信息
Network *MonitorNetwork `json:"network,omitempty"`
// Runtime 运行时信息
Runtime *MonitorRuntime `json:"runtime,omitempty"`
// GoVersion Go版本
GoVersion string `json:"goVersion"`
// StartTime 启动时间
StartTime int64 `json:"startTime"`
// Uptime 运行时长(秒)
Uptime int64 `json:"uptime"`
}
type MonitorRuntime ¶ added in v0.7.0
type MonitorRuntime struct {
// Goroutines 协程数
Goroutines int `json:"goroutines"`
// HeapAlloc 堆分配字节数
HeapAlloc uint64 `json:"heapAlloc"`
// HeapSys 堆系统字节数
HeapSys uint64 `json:"heapSys"`
// HeapIdle 堆空闲字节数
HeapIdle uint64 `json:"heapIdle"`
// HeapInuse 堆使用字节数
HeapInuse uint64 `json:"heapInuse"`
// HeapObjects 堆对象数
HeapObjects uint64 `json:"heapObjects"`
// StackInuse 栈使用字节数
StackInuse uint64 `json:"stackInuse"`
// StackSys 栈系统字节数
StackSys uint64 `json:"stackSys"`
// MSpanInuse MSpan使用字节数
MSpanInuse uint64 `json:"mSpanInuse"`
// MCacheInuse MCache使用字节数
MCacheInuse uint64 `json:"mCacheInuse"`
// NumGC GC次数
NumGC uint32 `json:"numGC"`
// GCPauseTotalNs GC暂停总时间(纳秒)
GCPauseTotalNs uint64 `json:"gcPauseTotalNs"`
// LastGCTime 最后一次GC时间(纳秒时间戳)
LastGCTime uint64 `json:"lastGCTime"`
}
type NoticeSearch ¶
type NoticeSearch struct {
actions.Pagination `search:"inline"`
// UserID 用户ID
UserID string `query:"userID" form:"userID" search:"type:contains;column:user_id"`
// Title 标题
Title string `query:"title" form:"title" search:"type:contains;column:title"`
// Status 状态
Status string `query:"status" form:"status" search:"type:exact;column:status"`
// Type 类型
Type string `query:"type" form:"type" search:"type:exact;column:type"`
}
type OauthCallbackReq ¶
type OauthCallbackReq struct {
Provider pkg.LoginProvider `uri:"provider" binding:"required"`
Code string `query:"code" form:"code" binding:"required"`
State string `query:"state" form:"state" binding:"required"`
}
type OauthGetLoginURLReq ¶
type OauthGetLoginURLReq struct {
State string `query:"state" form:"state" binding:"required"`
}
type OauthToken ¶
type OauthToken struct {
// Provider is the name of the OAuth2 provider[GitHub, Lark].
Provider string `uri:"provider" binding:"required"`
// AccessToken is the token that authorizes and authenticates
// the requests.
AccessToken string `json:"accessToken"`
// TokenType is the type of token.
// The Type method returns either this or "Bearer", the default.
TokenType string `json:"tokenType,omitempty"`
// RefreshToken is a token that's used by the application
// (as opposed to the user) to refresh the access token
// if it expires.
RefreshToken string `json:"refreshToken,omitempty"`
// Expiry is the optional expiration time of the access token.
//
// If zero, TokenSource implementations will reuse the same
// token forever and RefreshToken or equivalent
// mechanisms for that TokenSource will not be used.
Expiry *time.Time `json:"expiry,omitempty"`
RefreshExpiry *time.Time `json:"refreshExpiry,omitempty"`
}
type OptionSearch ¶
type OptionSearch struct {
actions.Pagination `search:"inline"`
// ID
ID string `query:"id" form:"id" search:"type:contains;column:id"`
// Name 名称
Name string `query:"name" form:"name" search:"type:contains;column:name"`
// Status 状态
Status string `query:"status" form:"status" search:"type:exact;column:status"`
}
type PasswordResetRequest ¶
type PostSearch ¶
type PostSearch struct {
actions.Pagination `search:"inline"`
// ID
ID string `query:"id" form:"id" search:"type:contains;column:id"`
// Name 名称
Name string `query:"name" form:"name" search:"type:contains;column:name"`
// ParentID 父级部门ID
ParentID string `query:"parentID" form:"parentID" search:"type:exact;column:parent_id"`
}
type RegisterRequest ¶ added in v0.4.7
type RegisterResponse ¶ added in v0.4.7
type RegisterResponse struct {
}
type ResetPasswordRequest ¶ added in v0.4.6
type ResponseNonce ¶ added in v0.6.1
type ResponseNonce struct {
Nonce string `json:"nonce"`
}
type RoleSearch ¶
type RoleSearch struct {
actions.Pagination `search:"inline"`
// ID
ID string `query:"id" form:"id" search:"type:contains;column:id"`
//名称
Name string `query:"name" form:"name" search:"type:contains;column:name"`
//状态
Status enum.Status `query:"status" form:"status" search:"type:exact;column:status"`
//备注
Remark string `query:"remark" form:"remark" search:"type:contains;column:remark"`
}
type SetAuthorizeRequest ¶
type StatisticsGetRequest ¶
type StatisticsGetRequest struct {
Name string `uri:"name" binding:"required"`
}
type StatisticsGetResponse ¶
type StatisticsGetResponse struct {
Name string `json:"name"`
Type string `json:"type"`
Items []StatisticsItem `json:"items"`
}
type StatisticsItem ¶
type SystemConfigSearch ¶
type SystemConfigSearch struct {
actions.Pagination `search:"inline"`
}
type TaskFuncItem ¶ added in v0.6.1
type TaskOperateRequest ¶
type TaskSearch ¶
type TaskSearch struct {
actions.Pagination `search:"inline"`
// ID
ID string `query:"id" form:"id" search:"type:contains;column:id"`
//名称
Name string `query:"name" form:"name" search:"type:contains;column:name"`
//状态
Status string `query:"status" form:"status" search:"type:exact;column:status"`
}
type TemplateGenerateReq ¶
type TemplateGenerateReq struct {
Template TemplateParams `json:"template"`
Generate GenerateParams `json:"generate"`
AccessToken string `query:"accessToken" form:"accessToken"`
Email string `query:"email" form:"email"`
}
type TemplateGenerateResp ¶
type TemplateGetBranchesReq ¶
type TemplateGetBranchesResp ¶
type TemplateGetBranchesResp struct {
Branches []string `json:"branches"`
}
type TemplateGetParamsReq ¶
type TemplateGetParamsResp ¶
type TemplateGetParamsResp struct {
Params []TemplateParam `json:"params"`
}
type TemplateGetPathReq ¶
type TemplateGetPathResp ¶
type TemplateGetPathResp struct {
Path []string `json:"path"`
}
type TemplateParam ¶
type TemplateParams ¶
type TenantSearch ¶
type TenantSearch struct {
actions.Pagination `search:"inline"`
// ID
ID string `query:"id" form:"id" search:"type:contains;column:id"`
// Name 名称
Name string `query:"name" form:"name" search:"type:contains;column:name"`
// Status 状态
Status string `query:"status" form:"status" search:"type:contains;column:status"`
}
type UpdateAuthorizeRequest ¶
type UpdateAuthorizeRequest struct {
GetAuthorizeRequest
Keys []string `json:"keys" binding:"required"`
}
type UpdateAvatarResponse ¶
type UpdateAvatarResponse struct {
Avatar string `json:"avatar"`
}
type UpdateUserInfoRequest ¶
type UpdateUserInfoRequest struct {
Name string `json:"name"`
Email string `json:"email"`
Avatar string `json:"avatar"`
Signature string `json:"signature"`
Title string `json:"title"`
Group string `json:"group"`
Country string `json:"country"`
Province string `json:"province"`
City string `json:"city"`
Address string `json:"address"`
Phone string `json:"phone"`
Profile string `json:"profile"`
Tags []string `json:"tags"`
}
type UserAuthTokenGenerateRequest ¶ added in v0.4.5
type UserConfigGroupRequest ¶
type UserConfigGroupRequest struct {
Group string `uri:"group" binding:"required"`
}
type UserSearch ¶
type UserSearch struct {
actions.Pagination `search:"inline"`
ID string `query:"id" form:"id" search:"type:contains;column:id"`
Name string `query:"name" form:"name" search:"type:contains;column:name"`
}
type ValueEnumType ¶
type VirtualModelObject ¶
type VirtualModelObject struct {
Name string `json:"name"`
Columns []*ColumnType `json:"columns"`
}
Click to show internal directories.
Click to hide internal directories.