dto

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 AppConfigControlRequest struct {
	Group string         `uri:"group" binding:"required" swaggerignore:"true"`
	Data  map[string]any `json:"data" binding:"required"`
}

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 FakeCaptchaRequest struct {
	Phone string `json:"phone"`
	Email string `json:"email"`
	UseBy string `json:"useBy"`
}

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 GenerateParams struct {
	Service string            `json:"service"`
	Repo    string            `json:"repo" binding:"required"`
	Params  map[string]string `json:"params"`
}

type GetAuthorizeRequest

type GetAuthorizeRequest struct {
	RoleID string `uri:"roleID" binding:"required"`
}

type GetAuthorizeResponse

type GetAuthorizeResponse struct {
	RoleID string   `json:"roleID"`
	Paths  []string `json:"paths,omitempty"`
}

type GithubControlReq

type GithubControlReq struct {
	//github密码或者token
	Password string `json:"password" binding:"required"`
}

type GithubGetResp

type GithubGetResp struct {
	//github邮箱
	Email string `json:"email" bson:"email"`
	//已配置
	Configured bool `json:"configured" bson:"configured"`
	//创建时间
	CreatedAt time.Time `json:"createdAt" bson:"createdAt"`
	//更新时间
	UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt"`
}

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 LoginResponse struct {
	Code   int       `json:"code"`
	Expire time.Time `json:"expire"`
	Token  string    `json:"token"`
}
type MenuBindAPIRequest struct {
	MenuID string   `json:"menuID" binding:"required"`
	Paths  []string `json:"paths" binding:"required"`
}
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 ModelCreateMenuRequest struct {
	ID       string `json:"id" binding:"required"`
	ParentID string `json:"parentID"`
}

type ModelGenerateDataRequest

type ModelGenerateDataRequest struct {
	ID           string `json:"id" binding:"required"`
	MenuParentID string `json:"menuParentID"`
}

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 MonitorCPUInfo struct {
	cpu.InfoStat
	// CPUUsagePercent CPU使用率
	CPUUsagePercent float64 `json:"cpuUsagePercent"`
}

type MonitorConnectionCount added in v0.7.0

type MonitorConnectionCount struct {
	// Established 已建立连接数
	Established int `json:"established"`
	// Listen 监听状态数
	Listen int `json:"listen"`
	// TimeWait TIME_WAIT状态数
	TimeWait int `json:"timeWait"`
	// CloseWait CLOSE_WAIT状态数
	CloseWait int `json:"closeWait"`
	// Total 总连接数
	Total int `json:"total"`
}

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 PasswordResetRequest struct {
	UserID   string `uri:"userID" binding:"required"`
	Password string `json:"password" binding:"required"`
}

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 RegisterRequest struct {
	Email    string `json:"email" binding:"required,email"`
	Captcha  string `json:"captcha" binding:"required"`
	Password string `json:"password" binding:"required"`
}

type RegisterResponse added in v0.4.7

type RegisterResponse struct {
}

type ResetPasswordRequest added in v0.4.6

type ResetPasswordRequest struct {
	Email    string `json:"email"`
	Captcha  string `json:"captcha"`
	Password string `json:"password" binding:"required"`
}

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 SetAuthorizeRequest struct {
	RoleID string   `uri:"roleID" swaggerignore:"true" binding:"required"`
	Paths  []string `json:"paths" binding:"required"`
}

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 StatisticsItem struct {
	Date   string  `json:"time"`
	Scales float64 `json:"scales"`
}

type SystemConfigSearch

type SystemConfigSearch struct {
	actions.Pagination `search:"inline"`
}

type TaskFuncItem added in v0.6.1

type TaskFuncItem struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

type TaskOperateRequest

type TaskOperateRequest struct {
	ID      string `uri:"id" binding:"required"`
	Operate string `uri:"operate" binding:"required"`
}

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 TemplateGenerateResp struct {
	Repo   string `json:"repo"`
	Branch string `json:"branch"`
}

type TemplateGetBranchesReq

type TemplateGetBranchesReq struct {
	Source      string `query:"source" form:"source" binding:"required"`
	AccessToken string `query:"accessToken" form:"accessToken"`
}

type TemplateGetBranchesResp

type TemplateGetBranchesResp struct {
	Branches []string `json:"branches"`
}

type TemplateGetParamsReq

type TemplateGetParamsReq struct {
	Source      string `query:"source" form:"source" binding:"required"`
	Branch      string `query:"branch" form:"branch"`
	Path        string `query:"path" form:"path"`
	AccessToken string `query:"accessToken" form:"accessToken"`
}

type TemplateGetParamsResp

type TemplateGetParamsResp struct {
	Params []TemplateParam `json:"params"`
}

type TemplateGetPathReq

type TemplateGetPathReq struct {
	Source      string `query:"source" form:"source" binding:"required"`
	Branch      string `query:"branch" form:"branch"`
	AccessToken string `query:"accessToken" form:"accessToken"`
}

type TemplateGetPathResp

type TemplateGetPathResp struct {
	Path []string `json:"path"`
}

type TemplateParam

type TemplateParam struct {
	Name string `json:"name"`
	Tip  string `json:"tip"`
}

type TemplateParams

type TemplateParams struct {
	Source string `json:"source" binding:"required"`
	Branch string `json:"branch"`
	Path   string `json:"path"`
}

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 UserAuthTokenGenerateRequest struct {
	ValidityPeriod time.Duration `form:"validityPeriod" query:"validityPeriod"`
}

type UserConfigControlRequest

type UserConfigControlRequest struct {
	Group string         `uri:"group" binding:"required" swaggerignore:"true"`
	Data  map[string]any `json:"data" binding:"required"`
}

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 ValueEnumType struct {
	Text     string `json:"text"`
	Status   string `json:"status"`
	Color    string `json:"color,omitempty"`
	Disabled bool   `json:"disabled,omitempty"`
}

type VirtualModelObject

type VirtualModelObject struct {
	Name    string        `json:"name"`
	Columns []*ColumnType `json:"columns"`
}

Jump to

Keyboard shortcuts

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