Documentation
¶
Index ¶
- type APISearch
- type AppConfigControlRequest
- type AppConfigGroupRequest
- type ColumnType
- type DepartmentSearch
- type FakeCaptchaRequest
- type FakeCaptchaResponse
- type FieldSearch
- type GenerateParams
- type GetAuthorizeRequest
- type GetAuthorizeResponse
- type GithubControlReq
- type GithubGetResp
- type LanguageSearch
- type LoginResponse
- type MenuBindAPIRequest
- type MenuSearch
- type ModelCreateMenuRequest
- type ModelGenerateDataRequest
- type ModelSearch
- type MonitorCPUInfo
- type MonitorResponse
- type NoticeSearch
- type OauthCallbackReq
- type OauthGetLoginURLReq
- type OauthToken
- type OptionSearch
- type PasswordResetRequest
- type PostSearch
- type RegisterRequest
- type RegisterResponse
- type ResetPasswordRequest
- type RoleSearch
- type SetAuthorizeRequest
- type StatisticsGetRequest
- type StatisticsGetResponse
- type StatisticsItem
- type SystemConfigSearch
- 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 AppConfigControlRequest ¶
type AppConfigGroupRequest ¶
type AppConfigGroupRequest struct {
Group string `uri:"group" binding:"required"`
}
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 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 MonitorResponse ¶
type MonitorResponse struct { // CPUPhysicalCore CPU物理核心数 CPUPhysicalCore int `json:"cpuPhysicalCore"` // CPULogicalCore CPU逻辑核心数 CPULogicalCore int `json:"cpuLogicalCore"` // CPUInfo CPU信息 CPUInfo []MonitorCPUInfo `json:"cpuInfo"` // MemoryTotal 内存总量 MemoryTotal uint64 `json:"memoryTotal"` // MemoryUsage 内存使用量 MemoryUsage uint64 `json:"memoryUsage"` // MemoryUsagePercent 内存使用率 MemoryUsagePercent float64 `json:"memoryUsagePercent"` // MemoryAvailable 内存可用量 MemoryAvailable uint64 `json:"memoryAvailable"` // MemoryFree 内存空闲量 MemoryFree uint64 `json:"memoryFree"` // DiskTotal 磁盘总量 DiskTotal uint64 `json:"diskTotal"` // DiskUsage 磁盘使用量 DiskUsage uint64 `json:"diskUsage"` // DiskUsagePercent 磁盘使用率 DiskUsagePercent float64 `json:"diskUsagePercent"` }
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 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 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 昵称 Name string `json:"name"` // Email 邮箱 Email string `json:"email"` // Avatar 头像 Avatar string `json:"avatar"` // Signature 个性签名 Signature string `json:"signature"` // Title 职位 Title string `json:"title"` // Group 组别 Group string `json:"group"` // Country 国家 Country string `json:"country"` // Province 省份 Province string `json:"province"` // City 城市 City string `json:"city"` // Address 地址 Address string `json:"address"` // Phone 手机号 Phone string `json:"phone"` // Profile 个人简介 Profile string `json:"profile"` // Tags 标签 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 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.