Documentation ¶
Overview ¶
Code generated by goctl. DO NOT EDIT.
Index ¶
- type ApiAuthorityInfo
- type ApiAuthorityListInfo
- type ApiAuthorityListResp
- type ApiInfo
- type ApiInfoResp
- type ApiListInfo
- type ApiListReq
- type ApiListResp
- type BaseDataInfo
- type BaseIDInfo
- type BaseListInfo
- type BaseMsgResp
- type BaseUUIDInfo
- type CallbackResp
- type CaptchaInfo
- type CaptchaResp
- type ChangePasswordReq
- type CreateOrUpdateApiAuthorityReq
- type DepartmentInfo
- type DepartmentInfoResp
- type DepartmentListInfo
- type DepartmentListReq
- type DepartmentListResp
- type DictionaryDetailInfo
- type DictionaryDetailInfoResp
- type DictionaryDetailListInfo
- type DictionaryDetailListReq
- type DictionaryDetailListResp
- type DictionaryInfo
- type DictionaryInfoResp
- type DictionaryListInfo
- type DictionaryListReq
- type DictionaryListResp
- type DictionaryNameReq
- type IDPathReq
- type IDReq
- type IDsReq
- type LoginInfo
- type LoginReq
- type LoginResp
- type MenuAuthorityInfoReq
- type MenuAuthorityInfoResp
- type MenuInfo
- type MenuInfoResp
- type MenuListInfo
- type MenuListResp
- type MenuPlainInfo
- type MenuPlainInfoList
- type MenuPlainInfoListResp
- type Meta
- type OauthLoginReq
- type OauthProviderInfo
- type OauthProviderInfoResp
- type OauthProviderListInfo
- type OauthProviderListReq
- type OauthProviderListResp
- type PageInfo
- type PermCodeResp
- type PositionInfo
- type PositionInfoResp
- type PositionListInfo
- type PositionListReq
- type PositionListResp
- type ProfileInfo
- type ProfileResp
- type RedirectInfo
- type RedirectResp
- type RegisterReq
- type RoleInfo
- type RoleInfoResp
- type RoleInfoSimple
- type RoleListInfo
- type RoleListReq
- type RoleListResp
- type TaskInfo
- type TaskInfoResp
- type TaskListInfo
- type TaskListReq
- type TaskListResp
- type TaskLogInfo
- type TaskLogInfoResp
- type TaskLogListInfo
- type TaskLogListReq
- type TaskLogListResp
- type TokenInfo
- type TokenInfoResp
- type TokenListInfo
- type TokenListReq
- type TokenListResp
- type UUIDReq
- type UUIDsReq
- type UserBaseIDInfo
- type UserBaseIDInfoResp
- type UserInfo
- type UserInfoResp
- type UserListInfo
- type UserListReq
- type UserListResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiAuthorityInfo ¶
type ApiAuthorityInfo struct { // API path | API 路径 // required : true // max length : 80 Path string `json:"path" validate="required,max=80"` // API method | API请求方法 // required : true // min length : 3 // max length : 4 Method string `json:"method" validate="required,min=3,max=4"` }
The response data of api authorization | API授权数据 swagger:model ApiAuthorityInfo
type ApiAuthorityListInfo ¶ added in v0.1.5
type ApiAuthorityListInfo struct { BaseListInfo // The api authorization list data | API授权列表数据 Data []ApiAuthorityInfo `json:"data"` }
The data of api authorization list | API授权列表数据 swagger:model ApiAuthorityListInfo
type ApiAuthorityListResp ¶
type ApiAuthorityListResp struct { BaseDataInfo // The api authorization list data | API授权列表数据 Data ApiAuthorityListInfo `json:"data"` }
The response data of api authorization list | API授权列表返回数据 swagger:model ApiAuthorityListResp
type ApiInfo ¶
type ApiInfo struct { BaseIDInfo // Translated Name | 多语言名称 Trans string `json:"trans,optional"` // API path | API路径 // min length : 1 // max length : 80 Path *string `json:"path,optional" validate:"omitempty,min=1,max=80"` // API Description | API 描述 // max length : 100 Description *string `json:"description,optional" validate:"omitempty,max=100"` // API group | API分组 // min length : 1 // max length : 20 Group *string `json:"group,optional" validate:"omitempty,min=1,max=20"` // API request method e.g. POST | API请求类型 如POST // min length : 3 // max length : 4 Method *string `json:"method,optional" validate:"omitempty,uppercase,min=3,max=4"` }
The API information | API信息 swagger:model ApiInfo
type ApiInfoResp ¶ added in v0.2.4
type ApiInfoResp struct { BaseDataInfo // API information | API数据 Data ApiInfo `json:"data"` }
API information response | API信息返回体 swagger:model ApiInfoResp
type ApiListInfo ¶ added in v0.1.5
type ApiListInfo struct { BaseListInfo // The API list data | API列表数据 Data []ApiInfo `json:"data"` }
API list data | API 列表数据 swagger:model ApiListInfo
type ApiListReq ¶
type ApiListReq struct { PageInfo // API path | API路径 // max length : 200 Path *string `json:"path,optional" validate:"omitempty,max=200"` // API Description | API 描述 // max length : 100 Description *string `json:"description,optional" validate:"omitempty,max=100"` // API group | API分组 // max length : 20 Group *string `json:"group,optional" validate:"omitempty,max=20"` // API request method e.g. POST | API请求类型 如POST // min length : 3 // max length : 4 Method *string `json:"method,optional" validate:"omitempty,uppercase,min=3,max=4"` }
Get API list request params | API列表请求参数 swagger:model ApiListReq
type ApiListResp ¶
type ApiListResp struct { BaseDataInfo // API list data | API 列表数据 Data ApiListInfo `json:"data"` }
The response data of API list | API列表数据 swagger:model ApiListResp
type BaseDataInfo ¶ added in v0.1.5
type BaseDataInfo struct { // Error code | 错误代码 Code int `json:"code"` // Message | 提示信息 Msg string `json:"msg"` // Data | 数据 Data string `json:"data,omitempty"` }
The basic response with data | 基础带数据信息 swagger:model BaseDataInfo
type BaseIDInfo ¶ added in v0.2.9
type BaseIDInfo struct { // ID Id *uint64 `json:"id,optional"` // Create date | 创建日期 CreatedAt *int64 `json:"createdAt,optional"` // Update date | 更新日期 UpdatedAt *int64 `json:"updatedAt,optional"` }
The base ID response data | 基础ID信息 swagger:model BaseIDInfo
type BaseListInfo ¶ added in v0.1.5
type BaseListInfo struct { // The total number of data | 数据总数 Total uint64 `json:"total"` // Data | 数据 Data string `json:"data,omitempty"` }
The basic response with data | 基础带数据信息 swagger:model BaseListInfo
type BaseMsgResp ¶ added in v0.1.5
type BaseMsgResp struct { // Error code | 错误代码 Code int `json:"code"` // Message | 提示信息 Msg string `json:"msg"` }
The basic response without data | 基础不带数据信息 swagger:model BaseMsgResp
type BaseUUIDInfo ¶ added in v0.2.1
type BaseUUIDInfo struct { // ID Id *string `json:"id,optional"` // Create date | 创建日期 CreatedAt *int64 `json:"createdAt,optional"` // Update date | 更新日期 UpdatedAt *int64 `json:"updatedAt,optional"` }
The base UUID response data | 基础UUID信息 swagger:model BaseUUIDInfo
type CallbackResp ¶ added in v0.0.8
type CallbackResp struct { // User's UUID | 用户的UUID UserId string `json:"userId"` // User's role information| 用户的角色信息 // in: body Role RoleInfoSimple `json:"role"` // Token for authorization | 验证身份的token Token string `json:"token"` // Expire timestamp | 过期时间戳 Expire uint64 `json:"expire"` }
The oauth callback response data | Oauth回调数据 swagger:model CallbackResp
type CaptchaInfo ¶
The information of captcha | 验证码数据 swagger:model CaptchaInfo
type CaptchaResp ¶ added in v0.1.5
type CaptchaResp struct { BaseDataInfo // The menu authorization data | 菜单授权信息数据 Data CaptchaInfo `json:"data"` }
The response data of captcha | 验证码返回数据 swagger:model CaptchaResp
type ChangePasswordReq ¶
type ChangePasswordReq struct { // User's old password | 用户旧密码 // required : true // max length : 30 OldPassword string `json:"oldPassword" validate:"required,max=30"` // User's new password | 用户新密码 // required : true // max length : 30 NewPassword string `json:"newPassword" validate:"required,max=30"` }
change user's password request | 修改密码请求参数 swagger:model ChangePasswordReq
type CreateOrUpdateApiAuthorityReq ¶
type CreateOrUpdateApiAuthorityReq struct { // Role ID | 角色ID // required : true // max : 1000 RoleId uint64 `json:"roleId" validate:"required,lt=1000"` // API authorization list | API授权列表数据 // Required: true Data []ApiAuthorityInfo `json:"data"` }
Create or update api authorization information request | 创建或更新API授权信息 swagger:model CreateOrUpdateApiAuthorityReq
type DepartmentInfo ¶ added in v0.2.3
type DepartmentInfo struct { BaseIDInfo // Translated Name | 展示名称 Trans string `json:"trans,optional"` // Status | 状态 // max : 20 Status *uint32 `json:"status,optional" validate:"omitempty,lt=20"` // Sort | 排序 // max : 10000 Sort *uint32 `json:"sort,optional" validate:"omitempty,lt=10000"` // Name | 部门名称 // min length : 1 // max length : 50 Name *string `json:"name,optional" validate:"omitempty,min=1,max=50"` // Ancestors | 父级部门列表 // max length : 200 Ancestors *string `json:"ancestors,optional" validate:"omitempty,max=200"` // Leader | 部门负责人 // max length : 20 Leader *string `json:"leader,optional" validate:"omitempty,max=20"` // Phone | 电话号码 // max length : 18 Phone *string `json:"phone,optional" validate:"omitempty,max=18"` // Email | 邮箱 // min length : 5 // max length : 70 Email *string `json:"email,optional" validate:"omitempty,min=5,max=70"` // Remark | 备注 // max length : 200 Remark *string `json:"remark,optional" validate:"omitempty,max=200"` // ParentId | 父级 ID ParentId *uint64 `json:"parentId,optional"` }
The response data of department information | 部门信息 swagger:model DepartmentInfo
type DepartmentInfoResp ¶ added in v0.2.4
type DepartmentInfoResp struct { BaseDataInfo // Department information | 部门数据 Data DepartmentInfo `json:"data"` }
Department information response | 部门信息返回体 swagger:model DepartmentInfoResp
type DepartmentListInfo ¶ added in v0.2.3
type DepartmentListInfo struct { BaseListInfo // The API list data | 部门列表数据 Data []DepartmentInfo `json:"data"` }
Department list data | 部门列表数据 swagger:model DepartmentListInfo
type DepartmentListReq ¶ added in v0.2.3
type DepartmentListReq struct { PageInfo // Name | 部门名称 // max length : 50 Name *string `json:"name,optional" validate:"omitempty,max=50"` // Leader | 部门负责人 // max length : 20 Leader *string `json:"leader,optional" validate:"omitempty,max=20"` }
Get department list request params | 部门列表请求参数 swagger:model DepartmentListReq
type DepartmentListResp ¶ added in v0.2.3
type DepartmentListResp struct { BaseDataInfo // Department list data | 部门列表数据 Data DepartmentListInfo `json:"data"` }
The response data of department list | 部门列表数据 swagger:model DepartmentListResp
type DictionaryDetailInfo ¶ added in v0.0.7
type DictionaryDetailInfo struct { BaseIDInfo // Status | 状态 // max : 20 Status *uint32 `json:"status,optional" validate:"omitempty,lt=20"` // Title | 显示名称 // max length : 50 Title *string `json:"title,optional" validate:"omitempty,max=50"` // Key | 键 // max length : 80 Key *string `json:"key,optional" validate:"omitempty,max=80"` // Value | 值 // max length : 100 Value *string `json:"value,optional" validate:"omitempty,max=100"` // Dictionary ID | 所属字典ID DictionaryId *uint64 `json:"dictionaryId,optional"` // Sort | 排序 // max : 10000 Sort *uint32 `json:"sort,optional" validate:"omitempty,lt=10000"` }
The response data of dictionary detail information | 字典键值信息 swagger:model DictionaryDetailInfo
type DictionaryDetailInfoResp ¶ added in v0.2.4
type DictionaryDetailInfoResp struct { BaseDataInfo // DictionaryDetail information | 字典键值数据 Data DictionaryDetailInfo `json:"data"` }
DictionaryDetail information response | 字典键值信息返回体 swagger:model DictionaryDetailInfoResp
type DictionaryDetailListInfo ¶ added in v0.1.5
type DictionaryDetailListInfo struct { BaseListInfo // The API list data | 字典键值列表数据 Data []DictionaryDetailInfo `json:"data"` }
DictionaryDetail list data | 字典键值列表数据 swagger:model DictionaryDetailListInfo
type DictionaryDetailListReq ¶ added in v0.2.4
type DictionaryDetailListReq struct { PageInfo // Key | 键 // max length : 80 Key *string `json:"key,optional" validate:"omitempty,max=80"` // Dictionary ID | 所属字典ID DictionaryId *uint64 `json:"dictionaryId,optional"` }
Get dictionary detail list request params | 字典键值列表请求参数 swagger:model DictionaryDetailListReq
type DictionaryDetailListResp ¶ added in v0.0.7
type DictionaryDetailListResp struct { BaseDataInfo // DictionaryDetail list data | 字典键值列表数据 Data DictionaryDetailListInfo `json:"data"` }
The response data of dictionary detail list | 字典键值列表数据 swagger:model DictionaryDetailListResp
type DictionaryInfo ¶ added in v0.0.7
type DictionaryInfo struct { BaseIDInfo // Translated Name | 字典多语言名称 Trans string `json:"trans,optional"` // Title | 字典多语言名称 // min length : 1 // max length : 50 Title *string `json:"title,optional" validate:"omitempty,min=1,max=50"` // Name | 字典名称 // min length : 1 // max length : 50 Name *string `json:"name,optional" validate:"omitempty,min=1,max=50"` // Status | 状态 // max : 20 Status *uint32 `json:"status,optional" validate:"omitempty,lt=20"` // Description of dictionary | 字典描述 // max length : 200 Desc *string `json:"desc,optional" validate:"omitempty,max=200"` }
The response data of dictionary information | 字典信息 swagger:model DictionaryInfo
type DictionaryInfoResp ¶ added in v0.2.4
type DictionaryInfoResp struct { BaseDataInfo // Dictionary information | 字典数据 Data DictionaryInfo `json:"data"` }
Dictionary information response | 字典信息返回体 swagger:model DictionaryInfoResp
type DictionaryListInfo ¶ added in v0.1.5
type DictionaryListInfo struct { BaseListInfo // The API list data | 字典列表数据 Data []DictionaryInfo `json:"data"` }
Dictionary list data | 字典列表数据 swagger:model DictionaryListInfo
type DictionaryListReq ¶ added in v0.0.7
type DictionaryListReq struct { PageInfo // Name | 字典名称 // max length : 50 Name *string `json:"name,optional" validate:"omitempty,max=50"` }
Get dictionary list request params | 字典列表请求参数 swagger:model DictionaryListReq
type DictionaryListResp ¶ added in v0.0.7
type DictionaryListResp struct { BaseDataInfo // Dictionary list data | 字典列表数据 Data DictionaryListInfo `json:"data"` }
The response data of dictionary list | 字典列表数据 swagger:model DictionaryListResp
type DictionaryNameReq ¶ added in v1.0.0
type DictionaryNameReq struct { // in:path Name *string `json:"name,optional" path:"name"` }
Dictionary name request | 字典名称请求 swagger:parameters GetDictionaryDetailByDictionaryName
type IDPathReq ¶ added in v0.0.4
type IDPathReq struct { // ID // Required: true Id uint64 `path:"id"` }
Basic ID request | 基础ID地址参数请求 swagger:model IDPathReq
type IDReq ¶ added in v0.0.4
type IDReq struct { // ID // Required: true Id uint64 `json:"id" validate:"number"` }
Basic ID request | 基础ID参数请求 swagger:model IDReq
type IDsReq ¶ added in v0.1.8
type IDsReq struct { // IDs // Required: true Ids []uint64 `json:"ids"` }
Basic IDs request | 基础ID数组参数请求 swagger:model IDsReq
type LoginInfo ¶ added in v0.1.5
type LoginInfo struct { // User's UUID | 用户的UUID UserId string `json:"userId"` // Token for authorization | 验证身份的token Token string `json:"token"` // Expire timestamp | 过期时间戳 Expire uint64 `json:"expire"` }
The log in information | 登陆返回的数据信息 swagger:model LoginInfo
type LoginReq ¶
type LoginReq struct { // User Name | 用户名 // required : true // max length : 20 Username string `json:"username" validate:"required,alphanum,max=20"` // Password | 密码 // Required: true // Min length: 6 // Max length: 30 Password string `json:"password" validate:"required,max=30,min=6"` // Captcha ID which store in redis | 验证码编号, 存在redis中 // Required: true // Max length: 20 CaptchaId string `json:"captchaId" validate:"required,len=20"` // The Captcha which users input | 用户输入的验证码 // Required: true // Max length: 5 Captcha string `json:"captcha" validate:"required,len=5"` }
Login request | 登录参数 swagger:model LoginReq
type LoginResp ¶
type LoginResp struct { BaseDataInfo // The log in information | 登陆返回的数据信息 Data LoginInfo `json:"data"` }
The log in response data | 登录返回数据 swagger:model LoginResp
type MenuAuthorityInfoReq ¶ added in v0.0.4
type MenuAuthorityInfoReq struct { // role ID | 角色ID // required : true // max : 1000 RoleId uint64 `json:"roleId" validate:"required,lt=1000"` // menu ID array | 菜单ID数组 // required : true MenuIds []uint64 `json:"menuIds" validate:"required"` }
Create or update menu authorization information request params | 创建或更新菜单授权信息参数 swagger:model MenuAuthorityInfoReq
type MenuAuthorityInfoResp ¶ added in v0.0.4
type MenuAuthorityInfoResp struct { BaseDataInfo // The menu authorization data | 菜单授权信息数据 Data MenuAuthorityInfoReq `json:"data"` }
Menu authorization response data | 菜单授权信息数据 swagger:model MenuAuthorityInfoResp
type MenuInfo ¶ added in v0.1.4
type MenuInfo struct { BaseIDInfo // Translated Name | 国际化展示名称 Trans string `json:"trans,optional"` // Level | 菜单层级 Level *uint32 `json:"level,optional"` // ParentId | 父级菜单ID ParentId *uint64 `json:"parentId,optional"` // Path | 菜单访问路径 Path *string `json:"path,optional"` // Menu name | 菜单名称 Name *string `json:"name,optional"` // Redirect | 跳转地址 Redirect *string `json:"redirect,optional"` // Component | 组件地址 Component *string `json:"component,optional"` // Sort | 排序 Sort *uint32 `json:"sort,optional"` // Disabled | 是否启用 Disabled *bool `json:"disabled,optional"` // Meta | 菜单meta数据 Meta Meta `json:"meta"` // MenuType | 菜单类型 MenuType *uint32 `json:"menuType,optional"` }
The response data of menu information | 菜单信息 swagger:model MenuInfo
type MenuInfoResp ¶ added in v0.2.4
type MenuInfoResp struct { BaseDataInfo // Menu information | Menu数据 Data MenuInfo `json:"data"` }
Menu information response | 菜单信息返回体 swagger:model MenuInfoResp
type MenuListInfo ¶ added in v0.1.5
type MenuListInfo struct { BaseListInfo // The menu list data | 菜单列表数据 Data []MenuInfo `json:"data"` }
Menu list data | Menu列表数据 swagger:model MenuListInfo
type MenuListResp ¶
type MenuListResp struct { BaseDataInfo // Menu list data | Menu列表数据 Data MenuListInfo `json:"data"` }
The response data of menu list | 菜单列表返回数据 swagger:model MenuListResp
type MenuPlainInfo ¶ added in v0.2.4
type MenuPlainInfo struct { Id *uint64 `json:"id"` // Create date | 创建日期 CreatedAt *int64 `json:"createdAt,optional"` // Update date | 更新日期 UpdatedAt *int64 `json:"updatedAt,optional"` // Translated Name | 国际化展示名称 Trans *string `json:"trans,optional"` // Level | 菜单层级 // max : 20 Level *uint32 `json:"level,optional" validate:"omitempty,lt=20"` // ParentId | 父级菜单ID ParentId *uint64 `json:"parentId,optional"` // Path | 菜单访问路径 // max length : 200 Path *string `json:"path,optional" validate:"omitempty,max=200"` // Menu name | 菜单名称 // max length : 50 Name *string `json:"name,optional" validate:"omitempty,max=50"` // Redirect | 跳转地址 // max length : 300 Redirect *string `json:"redirect,optional" validate:"omitempty,max=300"` // Component | 组件地址 // max length : 80 Component *string `json:"component,optional" validate:"omitempty,max=80"` // Sort | 排序 // max : 10000 Sort *uint32 `json:"sort,optional" validate:"omitempty,lt=10000"` // Disabled | 是否启用 Disabled *bool `json:"disabled,optional"` // MenuType | 菜单类型 // max : 10 MenuType *uint32 `json:"menuType,optional" validate:"omitempty,lt=10"` // Menu title show in page | 菜单显示名 // max length : 50 Title *string `json:"title" validate:"omitempty,max=50"` // Menu Icon | 菜单图标 // max length : 50 Icon *string `json:"icon" validate:"omitempty,max=50"` // Hide menu | 隐藏菜单 HideMenu *bool `json:"hideMenu" validate:"boolean"` // If hide the breadcrumb | 隐藏面包屑 HideBreadcrumb *bool `json:"hideBreadcrumb,optional" validate:"boolean"` // Do not keep alive the tab | 不缓存Tab IgnoreKeepAlive *bool `json:"ignoreKeepAlive,optional" validate:"boolean"` // Hide the tab header | 当前路由不在标签页显示 HideTab *bool `json:"hideTab,optional" validate:"boolean"` // Iframe path | 内嵌iframe的地址 // max length : 300 FrameSrc *string `json:"frameSrc,optional" validate:"omitempty,max=300"` // The route carries parameters or not | 如果该路由会携带参数,且需要在tab页上面显示。则需要设置为true CarryParam *bool `json:"carryParam,optional" validate:"boolean"` // Hide children menu or not | 隐藏所有子菜单 HideChildrenInMenu *bool `json:"hideChildrenInMenu,optional" validate:"boolean"` // Affix tab | 是否固定标签 Affix *bool `json:"affix,optional" validate:"boolean"` // The maximum number of pages the router can open | 动态路由可打开Tab页数 DynamicLevel *uint32 `json:"dynamicLevel" validate:"number,lt=30"` // The real path of the route without dynamic part | 动态路由的实际Path, 即去除路由的动态部分 RealPath *string `json:"realPath,optional"` }
Menu information plain | 菜单信息无嵌套 swagger:model MenuPlainInfo
type MenuPlainInfoList ¶ added in v0.2.4
type MenuPlainInfoList struct { BaseListInfo // The menu list data | 菜单列表数据 Data []MenuPlainInfo `json:"data"` }
Menu list data | 菜单列表数据
type MenuPlainInfoListResp ¶ added in v0.2.4
type MenuPlainInfoListResp struct { BaseDataInfo // Menu list data | Menu列表数据 Data MenuPlainInfoList `json:"data"` }
Menu list data response | 菜单列表数据返回体 swagger:model MenuPlainInfoListResp
type Meta ¶
type Meta struct { // Menu title show in page | 菜单显示名 // Max length: 50 Title *string `json:"title" validate:"max=50"` // Menu Icon | 菜单图标 // Max length: 50 Icon *string `json:"icon" validate:"max=50"` // Hide menu | 隐藏菜单 HideMenu *bool `json:"hideMenu" validate:"boolean"` // If hide the breadcrumb | 隐藏面包屑 HideBreadcrumb *bool `json:"hideBreadcrumb,optional" validate:"boolean"` // Do not keep alive the tab | 不缓存Tab IgnoreKeepAlive *bool `json:"ignoreKeepAlive,optional" validate:"boolean"` // Hide the tab header | 当前路由不在标签页显示 HideTab *bool `json:"hideTab,optional" validate:"boolean"` // Iframe path | 内嵌iframe的地址 FrameSrc *string `json:"frameSrc,optional"` // The route carries parameters or not | 如果该路由会携带参数,且需要在tab页上面显示。则需要设置为true CarryParam *bool `json:"carryParam,optional" validate:"boolean"` // Hide children menu or not | 隐藏所有子菜单 HideChildrenInMenu *bool `json:"hideChildrenInMenu,optional" validate:"boolean"` // Affix tab | 是否固定标签 Affix *bool `json:"affix,optional" validate:"boolean"` // The maximum number of pages the router can open | 动态路由可打开Tab页数 DynamicLevel *uint32 `json:"dynamicLevel" validate:"number,lt=30"` // The real path of the route without dynamic part | 动态路由的实际Path, 即去除路由的动态部分 RealPath *string `json:"realPath,optional"` }
The meta data of menu | 菜单的meta数据 swagger:model Meta
type OauthLoginReq ¶ added in v0.0.8
type OauthLoginReq struct { // State code to avoid hack | 状态码,请求前后相同避免安全问题 // required : true // max length : 30 State string `json:"state" validate:"required,max=30"` // Provider name | 提供商名字 // Example: google // required : true // max length : 40 Provider string `json:"provider" validate:"required,max=40"` }
Oauth log in request | Oauth 登录请求 swagger:model OauthLoginReq
type OauthProviderInfo ¶ added in v0.2.4
type OauthProviderInfo struct { BaseIDInfo // Provider name | 第三方提供商名称 // max length : 30 Name *string `json:"name,optional" validate:"omitempty,max=30"` // ClientId | 客户端ID // max length : 80 ClientId *string `json:"clientId,optional" validate:"omitempty,max=80"` // ClientSecret | 客户端密钥 // max length : 100 ClientSecret *string `json:"clientSecret,optional" validate:"omitempty,max=100"` // Redirect URL| 跳转地址 // max length : 300 RedirectUrl *string `json:"redirectUrl,optional" validate:"omitempty,max=300"` // Scopes | 授权范围 // max length : 50 Scopes *string `json:"scopes,optional" validate:"omitempty,max=50"` // Authority URL | 授权地址 // max length : 300 AuthUrl *string `json:"authUrl,optional" validate:"omitempty,max=300"` // The URL to get token | 获取Token的地址 // max length : 300 TokenUrl *string `json:"tokenUrl,optional" validate:"omitempty,max=300"` // The type of auth | 鉴权方式 // max : 20 AuthStyle *uint64 `json:"authStyle,optional" validate:"omitempty,lt=20"` // The URL to get user information | 获取信息地址 // max length : 300 InfoUrl *string `json:"infoUrl,optional" validate:"omitempty,max=300"` }
The response data of oauth provider information | 第三方信息 swagger:model OauthProviderInfo
type OauthProviderInfoResp ¶ added in v0.2.4
type OauthProviderInfoResp struct { BaseDataInfo // OauthProvider information | 第三方数据 Data OauthProviderInfo `json:"data"` }
Oauth provider information response | 第三方信息返回体 swagger:model OauthProviderInfoResp
type OauthProviderListInfo ¶ added in v0.2.4
type OauthProviderListInfo struct { BaseListInfo // The API list data | 第三方列表数据 Data []OauthProviderInfo `json:"data"` }
OauthProvider list data | 第三方列表数据 swagger:model OauthProviderListInfo
type OauthProviderListReq ¶ added in v0.2.4
type OauthProviderListReq struct { PageInfo // Name | 第三方提供商名称 // max length : 30 Name *string `json:"name,optional" validate:"omitempty,max=30"` }
Get oauth provider list request params | 第三方列表请求参数 swagger:model OauthProviderListReq
type OauthProviderListResp ¶ added in v0.2.4
type OauthProviderListResp struct { BaseDataInfo // OauthProvider list data | 第三方列表数据 Data OauthProviderListInfo `json:"data"` }
The response data of oauth provider list | 第三方列表数据 swagger:model OauthProviderListResp
type PageInfo ¶
type PageInfo struct { // Page number | 第几页 // required : true // min : 0 Page uint64 `json:"page" validate:"required,number,gt=0"` // Page size | 单页数据行数 // required : true // max : 100000 PageSize uint64 `json:"pageSize" validate:"required,number,lt=100000"` }
The page request parameters | 列表请求参数 swagger:model PageInfo
type PermCodeResp ¶
type PermCodeResp struct { BaseDataInfo // Permission code data | 权限码数据 Data []string `json:"data"` }
The permission code for front end permission control | 权限码: 用于前端权限控制 swagger:model PermCodeResp
type PositionInfo ¶ added in v0.2.3
type PositionInfo struct { BaseIDInfo // Translated Name | 展示名称 Trans string `json:"trans,optional"` // Status | 状态 // max : 20 Status *uint32 `json:"status,optional" validate:"omitempty,lt=20"` // Sort | 排序 // max : 10000 Sort *uint32 `json:"sort,optional" validate:"omitempty,lt=10000"` // Name | 职位名称 // max length : 50 Name *string `json:"name,optional" validate:"omitempty,max=50"` // Code | 职位代码 // max length : 20 Code *string `json:"code,optional" validate:"omitempty,max=20"` // Remark | 备注 // max length : 200 Remark *string `json:"remark,optional" validate:"omitempty,max=200"` }
The response data of position information | 职位信息 swagger:model PositionInfo
type PositionInfoResp ¶ added in v0.2.4
type PositionInfoResp struct { BaseDataInfo // Position information | 职位数据 Data PositionInfo `json:"data"` }
Position information response | 职位信息返回体 swagger:model PositionInfoResp
type PositionListInfo ¶ added in v0.2.3
type PositionListInfo struct { BaseListInfo // The API list data | 职位列表数据 Data []PositionInfo `json:"data"` }
Position list data | 职位列表数据 swagger:model PositionListInfo
type PositionListReq ¶ added in v0.2.3
type PositionListReq struct { PageInfo // Name | 职位名称 // max length : 50 Name *string `json:"name,optional" validate:"omitempty,max=50"` // Code | 职位代码 // max length : 20 Code *string `json:"code,optional" validate:"omitempty,max=20"` // Remark | 备注 // max length : 200 Remark *string `json:"remark,optional" validate:"omitempty,max=200"` }
Get position list request params | 职位列表请求参数 swagger:model PositionListReq
type PositionListResp ¶ added in v0.2.3
type PositionListResp struct { BaseDataInfo // Position list data | 职位列表数据 Data PositionListInfo `json:"data"` }
The response data of position list | 职位列表数据 swagger:model PositionListResp
type ProfileInfo ¶ added in v0.1.5
type ProfileInfo struct { // user's nickname | 用户的昵称 // max length : 10 Nickname *string `json:"nickname" validate:"omitempty,alphanumunicode,max=10"` // The user's avatar path | 用户的头像路径 // max length : 300 Avatar *string `json:"avatar" validate:"omitempty,max=300"` // User's mobile phone number | 用户的手机号码 // max length : 18 Mobile *string `json:"mobile" validate:"omitempty,numeric,max=18"` // The user's email address | 用户的邮箱 // max length : 100 Email *string `json:"email" validate:"omitempty,email,max=100"` }
The profile information | 个人信息 swagger:model ProfileInfo
type ProfileResp ¶ added in v0.0.2
type ProfileResp struct { BaseDataInfo // The profile information | 个人信息 Data ProfileInfo `json:"data"` }
The profile response data | 个人信息返回数据 swagger:model ProfileResp
type RedirectInfo ¶ added in v0.1.5
type RedirectInfo struct { // Redirect URL | 跳转网址 URL string `json:"URL"` }
Redirect information | 跳转网址 swagger:model RedirectInfo
type RedirectResp ¶ added in v0.0.8
type RedirectResp struct { BaseDataInfo // Redirect information | 跳转网址 Data RedirectInfo `json:"data"` }
Redirect response | 跳转网址返回信息 swagger:model RedirectResp
type RegisterReq ¶
type RegisterReq struct { // User Name | 用户名 // required : true // max length : 20 Username string `json:"username" validate:"required,alphanum,max=20"` // Password | 密码 // required : true // max length : 30 // min length : 6 Password string `json:"password" validate:"required,max=30,min=6"` // Captcha ID which store in redis | 验证码编号, 存在redis中 // required : true // max length : 20 // min length : 20 CaptchaId string `json:"captchaId" validate:"required,len=20"` // The Captcha which users input | 用户输入的验证码 // required : true // max length : 5 // min length : 5 Captcha string `json:"captcha" validate:"required,len=5"` // The user's email address | 用户的邮箱 // required : true // max length : 100 Email string `json:"email" validate:"required,email,max=100"` }
register request | 注册参数 swagger:model RegisterReq
type RoleInfo ¶
type RoleInfo struct { BaseIDInfo // Translated Name | 展示名称 Trans string `json:"trans,optional"` // Status | 状态 // max : 20 Status *uint32 `json:"status,optional" validate:"omitempty,lt=20"` // Name | 角色名称 // max length : 30 Name *string `json:"name,optional" validate:"omitempty,max=30"` // Role code | 角色码 // max length : 20 Code *string `json:"code,optional" validate:"omitempty,max=20"` // DefaultRouter | 默认首页 // max length : 80 DefaultRouter *string `json:"defaultRouter,optional" validate:"omitempty,max=80"` // Remark | 备注 // max length : 200 Remark *string `json:"remark,optional" validate:"omitempty,max=200"` // Sort | 排序 // max : 10000 Sort *uint32 `json:"sort,optional" validate:"omitempty,lt=10000"` }
The response data of role information | 角色信息 swagger:model RoleInfo
type RoleInfoResp ¶ added in v0.2.4
type RoleInfoResp struct { BaseDataInfo // Role information | 角色数据 Data RoleInfo `json:"data"` }
Role information response | 角色信息返回体 swagger:model RoleInfoResp
type RoleInfoSimple ¶
type RoleInfoSimple struct { // Role name | 角色名 RoleName string `json:"roleName"` // Role value | 角色值 Value string `json:"value"` }
The simple role data | 简单的角色数据 swagger:model RoleInfoSimple
type RoleListInfo ¶ added in v0.1.5
type RoleListInfo struct { BaseListInfo // The API list data | 角色列表数据 Data []RoleInfo `json:"data"` }
Role list data | 角色列表数据 swagger:model RoleListInfo
type RoleListReq ¶ added in v0.2.4
Get role list request params | 角色列表请求参数 swagger:model RoleListReq
type RoleListResp ¶
type RoleListResp struct { BaseDataInfo // Role list data | 角色列表数据 Data RoleListInfo `json:"data"` }
The response data of role list | 角色列表数据 swagger:model RoleListResp
type TaskInfo ¶ added in v0.2.7
type TaskInfo struct { BaseIDInfo // Status | 状态 // max : 20 Status *uint32 `json:"status,optional" validate:"omitempty,lt=20"` // Name | 任务名称 // max length : 50 Name *string `json:"name,optional" validate:"omitempty,max=50"` // TaskGroup | 任务分组 // max length : 40 TaskGroup *string `json:"taskGroup,optional" validate:"omitempty,max=40"` // CronExpression | 定时任务 Cron 表达式 // max length : 80 CronExpression *string `json:"cronExpression,optional" validate:"omitempty,max=80"` // Pattern | 任务的标识 (用于区分和确定要执行的任务) // max length : 100 Pattern *string `json:"pattern,optional" validate:"omitempty,max=100"` // Payload | 任务需要数据(JSON 字符串) Payload *string `json:"payload,optional"` }
The response data of task information | 定时任务信息 swagger:model TaskInfo
type TaskInfoResp ¶ added in v0.2.7
type TaskInfoResp struct { BaseDataInfo // Task information | 定时任务数据 Data TaskInfo `json:"data"` }
Task information response | 定时任务信息返回体 swagger:model TaskInfoResp
type TaskListInfo ¶ added in v0.2.7
type TaskListInfo struct { BaseListInfo // The API list data | 定时任务列表数据 Data []TaskInfo `json:"data"` }
Task list data | 定时任务列表数据 swagger:model TaskListInfo
type TaskListReq ¶ added in v0.2.7
type TaskListReq struct { PageInfo // Name | 任务名称 Name *string `json:"name,optional"` // TaskGroup | 任务分组 TaskGroup *string `json:"taskGroup,optional"` }
Get task list request params | 定时任务列表请求参数 swagger:model TaskListReq
type TaskListResp ¶ added in v0.2.7
type TaskListResp struct { BaseDataInfo // Task list data | 定时任务列表数据 Data TaskListInfo `json:"data"` }
The response data of task list | 定时任务列表数据 swagger:model TaskListResp
type TaskLogInfo ¶ added in v0.2.8
type TaskLogInfo struct { // ID Id *uint64 `json:"id"` // StartedAt | 任务开始时间 StartedAt *int64 `json:"startedAt,optional"` // FinishedAt | 任务完成时间 FinishedAt *int64 `json:"finishedAt,optional"` // Result | 任务结果 Result *uint32 `json:"result,optional"` }
The response data of task log information | 任务日志信息 swagger:model TaskLogInfo
type TaskLogInfoResp ¶ added in v0.2.8
type TaskLogInfoResp struct { BaseDataInfo // TaskLog information | 任务日志数据 Data TaskLogInfo `json:"data"` }
TaskLog information response | 任务日志信息返回体 swagger:model TaskLogInfoResp
type TaskLogListInfo ¶ added in v0.2.8
type TaskLogListInfo struct { BaseListInfo // The API list data | 任务日志列表数据 Data []TaskLogInfo `json:"data"` }
TaskLog list data | 任务日志列表数据 swagger:model TaskLogListInfo
type TaskLogListReq ¶ added in v0.2.8
type TaskLogListReq struct { PageInfo // TaskId | 任务ID TaskId *uint64 `json:"taskId"` // Result | 任务结果 Result *uint32 `json:"result"` }
Get task log list request params | 任务日志列表请求参数 swagger:model TaskLogListReq
type TaskLogListResp ¶ added in v0.2.8
type TaskLogListResp struct { BaseDataInfo // TaskLog list data | 任务日志列表数据 Data TaskLogListInfo `json:"data"` }
The response data of task log list | 任务日志列表数据 swagger:model TaskLogListResp
type TokenInfo ¶ added in v0.1.1
type TokenInfo struct { BaseUUIDInfo // Status | 状态 Status *uint32 `json:"status,optional"` // User's UUID | 用户的UUID Uuid *string `json:"uuid,optional"` // Token | 用户的Token Token *string `json:"token,optional"` // Source | Token 来源 Source *string `json:"source,optional"` // ExpiredAt | 过期时间 ExpiredAt *int64 `json:"expiredAt,optional"` }
The response data of token information | Token信息 swagger:model TokenInfo
type TokenInfoResp ¶ added in v0.2.4
type TokenInfoResp struct { BaseDataInfo // Token information | Token数据 Data TokenInfo `json:"data"` }
Token information response | Token信息返回体 swagger:model TokenInfoResp
type TokenListInfo ¶ added in v0.1.5
type TokenListInfo struct { BaseListInfo // The API list data | Token列表数据 Data []TokenInfo `json:"data"` }
Token list data | Token列表数据 swagger:model TokenListInfo
type TokenListReq ¶ added in v0.1.1
type TokenListReq struct { PageInfo // Username Username *string `json:"username,optional"` // Nickname Nickname *string `json:"nickname,optional"` // Email Email *string `json:"email,optional"` // Uuid Uuid *string `json:"uuid,optional"` }
Get token list request params | Token列表请求参数 swagger:model TokenListReq
type TokenListResp ¶ added in v0.1.1
type TokenListResp struct { BaseDataInfo // Token list data | Token列表数据 Data TokenListInfo `json:"data"` }
The response data of token list | Token列表数据 swagger:model TokenListResp
type UUIDReq ¶
type UUIDReq struct { // ID // Required: true // Max length: 36 Id string `json:"id" validate:"len=36"` }
Basic UUID request | 基础UUID参数请求 swagger:model UUIDReq
type UUIDsReq ¶ added in v0.2.1
type UUIDsReq struct { // Ids // Required: true Ids []string `json:"ids"` }
Basic UUID array request | 基础UUID数组参数请求 swagger:model UUIDsReq
type UserBaseIDInfo ¶ added in v0.2.9
type UserBaseIDInfo struct { // User's UUID | 用户的UUID UUID *string `json:"userId"` // User's name | 用户名 Username *string `json:"username"` // User's nickname | 用户的昵称 Nickname *string `json:"nickname"` // The user's avatar path | 用户的头像路径 Avatar *string `json:"avatar"` // The home page that the user enters after logging in | 用户登陆后进入的首页 HomePath *string `json:"homePath"` // The description of user | 用户的描述信息 Description *string `json:"desc"` }
The data of user's basic information | 用户基本信息 swagger:model UserBaseIDInfo
type UserBaseIDInfoResp ¶ added in v0.2.9
type UserBaseIDInfoResp struct { BaseDataInfo // The data of user's basic information | 用户基本信息 Data UserBaseIDInfo `json:"data"` }
The response data of user's basic information | 用户基本信息返回数据 swagger:model UserBaseIDInfoResp
type UserInfo ¶ added in v0.2.4
type UserInfo struct { BaseUUIDInfo // Status | 状态 // max : 20 Status *uint32 `json:"status,optional" validate:"omitempty,lt=20"` // Username | 用户名 // max length : 50 Username *string `json:"username,optional" validate:"omitempty,max=50"` // Nickname | 昵称 // max length : 40 Nickname *string `json:"nickname,optional" validate:"omitempty,max=40"` // Password | 密码 // min length : 6 Password *string `json:"password,optional" validate:"omitempty,min=6"` // Description | 描述 // max length : 100 Description *string `json:"description,optional" validate:"omitempty,max=100"` // HomePath | 首页 // max length : 70 HomePath *string `json:"homePath,optional" validate:"omitempty,max=70"` // RoleId | 角色ID RoleIds []uint64 `json:"roleIds,optional"` // Mobile | 手机号 // max length : 18 Mobile *string `json:"mobile,optional" validate:"omitempty,max=18"` // Email | 邮箱 // max length : 80 Email *string `json:"email,optional" validate:"omitempty,max=80"` // Avatar | 头像地址 // max length : 300 Avatar *string `json:"avatar,optional" validate:"omitempty,max=300"` // Department ID | 部门ID DepartmentId *uint64 `json:"departmentId,optional"` // Position ID | 职位ID PositionIds []uint64 `json:"positionId,optional"` }
The response data of user information | 用户信息 swagger:model UserInfo
type UserInfoResp ¶
type UserInfoResp struct { BaseDataInfo // User information | User数据 Data UserInfo `json:"data"` }
User information response | 用户信息返回体 swagger:model UserInfoResp
type UserListInfo ¶ added in v0.1.5
type UserListInfo struct { BaseListInfo // The API list data | User列表数据 Data []UserInfo `json:"data"` }
User list data | 用户列表数据 swagger:model UserListInfo
type UserListReq ¶ added in v0.2.4
type UserListReq struct { PageInfo // User Name | 用户名 // max length : 20 Username *string `json:"username,optional" validate:"omitempty,alphanum,max=20"` // User's nickname | 用户的昵称 // max length : 10 Nickname *string `json:"nickname,optional" validate:"omitempty,alphanumunicode,max=10"` // User's mobile phone number | 用户的手机号码 // max length : 18 Mobile *string `json:"mobile,optional" validate:"omitempty,numeric,max=18"` // The user's email address | 用户的邮箱 // max length : 100 Email *string `json:"email,optional" validate:"omitempty,email,max=100"` // User's role ID | 用户的角色ID RoleIds []uint64 `json:"roleIds,optional"` // The user's department ID | 用户所属部门ID DepartmentId *uint64 `json:"departmentId,optional"` // User's position id | 用户的职位ID PositionId *uint64 `json:"positionId,optional"` }
Get user list request params | 用户列表请求参数 swagger:model UserListReq
type UserListResp ¶
type UserListResp struct { BaseDataInfo // User list data | User列表数据 Data UserListInfo `json:"data"` }
The response data of user list | 用户列表数据 swagger:model UserListResp