Documentation
¶
Index ¶
- Constants
- type AllDictionaryValueRequest
- type AllRoleEntityRequest
- type AuthorizeBase
- type AuthorizeInfo
- type CacheMenu
- type Captcha
- type CheckAuthRequest
- type CreateDeptRoleRequest
- type CreateJobRoleRequest
- type CreateMenuRolesRequest
- type CreateRoleMenusRequest
- type DeleteDeptRoleRequest
- type DeleteDeptUsersRequest
- type DeleteJobRoleRequest
- type DeleteMenuRolesRequest
- type DeleteRoleMenusRequest
- type DeleteUserDeptsRequest
- type DictionaryValue
- type FieldOptionItem
- type FieldOptionsReply
- type FillInfo
- type GetAuthorizeRequest
- type GetCurrentUserRequest
- type GetDictionaryRequest
- type GetMenuRoleIdsRequest
- type GetRoleMenuIdsRequest
- type GetRoleRequest
- type GetScopeResponse
- type GetSystemSettingReply
- type GetSystemSettingRequest
- type GetUserFormRequest
- type GetUserRequest
- type GetUserSettingRequest
- type GetUserinfoByFieldValueRequest
- type ListAppFieldRequest
- type ListAppFormRequest
- type ListAppOAutherRequest
- type ListAppRequest
- type ListAuthLogRequest
- type ListAuthorizeRequest
- type ListDeptClassifyRequest
- type ListDeptRequest
- type ListDeptRoleRequest
- type ListDeptUserRequest
- type ListDictionaryRequest
- type ListDictionaryValueRequest
- type ListEntityFieldRequest
- type ListEntityRequest
- type ListEntityRuleRequest
- type ListFeedbackClassifyRequest
- type ListFeedbackRequest
- type ListFieldRequest
- type ListFormSceneRequest
- type ListJobRequest
- type ListJobRoleRequest
- type ListLoginLogRequest
- type ListMenuRequest
- type ListNoticeRequest
- type ListOAutherRequest
- type ListRoleEntityRequest
- type ListRoleRequest
- type ListUserDeptRequest
- type ListUserFormRequest
- type ListUserRequest
- type ListUserinfoRequest
- type ListVisibleOAutherRequest
- type LoginReply
- type LoginRequest
- type OAutherBindReply
- type OAutherBindRequest
- type OAutherCompleteRequest
- type OAutherHandleReply
- type OAutherHandleRequest
- type OAutherIdentity
- type OAutherLoginReply
- type OAutherLoginRequest
- type OAutherReportRequest
- type OAutherStartReply
- type OAutherStartRequest
- type OAutherType
- type OAutherVisibleReply
- type OAutherVisibleRequest
- type OfflineUserRequest
- type RegisterEntityFieldNode
- type RegisterEntityNode
- type RegisterEntityReply
- type RegisterEntityRequest
- type RegisterEntityRuleNode
- type RegisterMenuNode
- type RegisterMenuReply
- type RegisterMenuRequest
- type RegisterReply
- type RegisterRequest
- type UpdateCurrentUserPasswordRequest
- type UpdateCurrentUserRequest
- type UpdateCurrentUserSettingRequest
Constants ¶
View Source
const ( OAutherWayBrowserWX = "wx" OAutherWayActionUniLogin = "unilogin" OAutherWayActionScan = "scan" OAutherWayActionJump = "jump" OAutherWayActionCaptcha = "captcha" PlatformApp = "app" // App PlatformWeb = "web" // Web PlatformWebYiBan = "web-yiban" // 易班 app-web PlatformWebWeiXin = "web-weixin" // 微信 app-web PlatformWebAliPay = "web-alipay" // 支付宝 app-web PlatformWebDouYin = "web-douyin" // 抖音 app-web PlatformMPWeiXin = "mp-weixin" // 微信小程序 PlatformMPAlipay = "mp-alipay" // 支付宝小程序 PlatformMPBaidu = "mp-baidu" // 百度小程序 PlatformMPTouTiao = "mp-toutiao" // 抖音小程序 PlatformMPLark = "mp-lark" // 飞书小程序 PlatformMPQQ = "mp-qq" // QQ小程序 PlatformMPKuaiShou = "mp-kuaishou" // 快手小程序 PlatformMPJD = "mp-jd" // 京东小程序 PlatformMP360 = "mp-360" // 360小程序 PlatformMPHarmony = "mp-harmony" // 鸿蒙元服务 PlatformMPQuickApp = "quickapp-webview" // 快应用通用(包含联盟、华为) )
View Source
const (
InfoKey = "x-md-global-info"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllRoleEntityRequest ¶
type AuthorizeBase ¶ added in v1.2.8
type AuthorizeInfo ¶ added in v1.2.8
type AuthorizeInfo struct {
*AuthorizeBase
AppKey string `json:"appKey"`
UserId uint32 `json:"userId"`
DeptId uint32 `json:"deptId"`
JobId uint32 `json:"jobId"`
IsAdmin bool `json:"isAdmin"` // 是否为超级管理员(绕过所有API权限检查)
}
func (AuthorizeInfo) ToMap ¶ added in v1.2.8
func (az AuthorizeInfo) ToMap() map[string]any
type CheckAuthRequest ¶ added in v1.2.8
type CreateDeptRoleRequest ¶ added in v1.2.8
type CreateJobRoleRequest ¶ added in v1.2.8
type CreateMenuRolesRequest ¶
type CreateRoleMenusRequest ¶
type DeleteDeptRoleRequest ¶ added in v1.2.8
type DeleteDeptUsersRequest ¶
type DeleteJobRoleRequest ¶ added in v1.2.8
type DeleteMenuRolesRequest ¶
type DeleteRoleMenusRequest ¶
type DeleteUserDeptsRequest ¶
type DictionaryValue ¶
type FieldOptionItem ¶ added in v1.2.10
FieldOptionItem 字段选项枚举项
type FieldOptionsReply ¶ added in v1.2.10
type FieldOptionsReply struct {
Types []FieldOptionItem `json:"types"` // 组件类型列表
Rules []FieldOptionItem `json:"rules"` // 校验规则类型列表
}
FieldOptionsReply 字段枚举配置响应
type GetAuthorizeRequest ¶ added in v1.2.8
type GetCurrentUserRequest ¶
type GetCurrentUserRequest struct {
App *string `json:"app"`
}
type GetDictionaryRequest ¶
type GetMenuRoleIdsRequest ¶
type GetMenuRoleIdsRequest struct {
MenuId uint32 `json:"menuId"`
}
type GetRoleMenuIdsRequest ¶
type GetRoleRequest ¶
type GetScopeResponse ¶
type GetScopeResponse struct {
AllDept bool
DeptScopes []uint32
Rule *hook.ConditionGroup
}
type GetSystemSettingReply ¶
type GetSystemSettingRequest ¶
type GetSystemSettingRequest struct{}
type GetUserFormRequest ¶ added in v1.2.10
GetUserFormRequest 获取单个表单请求
type GetUserRequest ¶
type GetUserSettingRequest ¶
type GetUserinfoByFieldValueRequest ¶ added in v1.2.8
type ListAppFieldRequest ¶
type ListAppFormRequest ¶ added in v1.2.10
type ListAppFormRequest struct {
AppKeyword string `json:"appKeyword"`
}
ListAppFormRequest 查询应用表单列表请求
type ListAppOAutherRequest ¶ added in v1.2.8
type ListAppRequest ¶
type ListAuthLogRequest ¶
type ListAuthorizeRequest ¶ added in v1.2.8
type ListDeptClassifyRequest ¶
type ListDeptRequest ¶
type ListDeptRoleRequest ¶
type ListDeptUserRequest ¶
type ListDictionaryRequest ¶
type ListEntityFieldRequest ¶
type ListEntityRequest ¶
type ListEntityRuleRequest ¶
type ListFeedbackClassifyRequest ¶ added in v1.2.10
type ListFeedbackRequest ¶
type ListFieldRequest ¶
type ListFormSceneRequest ¶ added in v1.2.10
type ListFormSceneRequest struct {
*page.Search
Keyword *string `json:"keyword"`
Name *string `json:"name"`
}
ListFormSceneRequest 查询场景列表请求
type ListJobRequest ¶
type ListJobRoleRequest ¶
type ListLoginLogRequest ¶
type ListMenuRequest ¶
type ListNoticeRequest ¶ added in v1.2.10
type ListOAutherRequest ¶ added in v1.2.8
type ListRoleEntityRequest ¶
type ListRoleRequest ¶
type ListUserDeptRequest ¶
type ListUserFormRequest ¶ added in v1.2.10
type ListUserFormRequest struct {
*page.Search
Scene *string `json:"scene"`
Name *string `json:"name"`
Status *bool `json:"status"`
}
ListUserFormRequest 分页查询表单列表请求
type ListUserRequest ¶
type ListUserRequest struct {
page.Search
InIds []uint32 `json:"idIds"`
NotInIds []uint32 `json:"notInIds"`
InDeptIds []uint32 `json:"inDeptIds"`
InJobIds []uint32 `json:"inJobIds"`
Username *string `json:"username"`
Status *bool `json:"status"`
LoggedAts []uint32 `json:"loggedAts"`
CreatedAts []uint32 `json:"createdAts"`
// 中转参数
DeptId *uint32 `json:"deptId"`
JobId *uint32 `json:"jobId"`
App *string `json:"app"`
}
type ListUserinfoRequest ¶
type ListVisibleOAutherRequest ¶ added in v1.2.10
type LoginReply ¶ added in v1.2.8
type LoginRequest ¶ added in v1.2.8
type OAutherBindReply ¶ added in v1.2.8
type OAutherBindRequest ¶ added in v1.2.8
type OAutherCompleteRequest ¶ added in v1.2.10
type OAutherHandleReply ¶ added in v1.2.8
type OAutherHandleRequest ¶ added in v1.2.8
type OAutherIdentity ¶ added in v1.2.10
type OAutherIdentity struct {
OID string `json:"oid,omitempty"` // 授权唯一ID
Birthday string `json:"birthday,omitempty"` // 生日
RealName string `json:"realName,omitempty"` // 姓名
NickName string `json:"nickName,omitempty"` // 昵称
Gender string `json:"gender,omitempty"` // 性别
Province string `json:"province,omitempty"` // 省
City string `json:"city,omitempty"` // 市
Country string `json:"country,omitempty"` // 区
Avatar string `json:"avatar,omitempty"` // 头像
UnionId string `json:"unionId,omitempty"` // 联合ID
Token string `json:"token,omitempty"` // 授权token
Expire int64 `json:"expire,omitempty"` // 过期时间
}
func (OAutherIdentity) ToString ¶ added in v1.2.10
func (reply OAutherIdentity) ToString() string
type OAutherLoginReply ¶ added in v1.2.8
type OAutherLoginRequest ¶ added in v1.2.8
type OAutherReportRequest ¶ added in v1.2.10
type OAutherStartReply ¶ added in v1.2.10
type OAutherStartRequest ¶ added in v1.2.10
type OAutherType ¶ added in v1.2.8
type OAutherVisibleReply ¶ added in v1.2.10
type OAutherVisibleRequest ¶ added in v1.2.10
type OfflineUserRequest ¶ added in v1.2.8
type RegisterEntityFieldNode ¶ added in v1.2.10
type RegisterEntityNode ¶ added in v1.2.10
type RegisterEntityNode struct {
Database string `json:"database"`
Name string `json:"name"`
Comment string `json:"comment"`
Fields []*RegisterEntityFieldNode `json:"fields"`
Rules []*RegisterEntityRuleNode `json:"rules"`
}
type RegisterEntityReply ¶ added in v1.2.10
type RegisterEntityRequest ¶ added in v1.2.10
type RegisterEntityRequest struct {
AppKeyword string `json:"appKeyword"`
Mode string `json:"mode"`
Entities []*RegisterEntityNode `json:"entities"`
}
type RegisterEntityRuleNode ¶ added in v1.2.10
type RegisterMenuNode ¶ added in v1.2.10
type RegisterMenuNode struct {
Key *string `json:"key"`
Title string `json:"title"`
Type string `json:"type"`
Icon *string `json:"icon"`
Api *string `json:"api"`
Method *string `json:"method"`
Path *string `json:"path"`
Permission *string `json:"permission"`
Component *string `json:"component"`
Url *string `json:"url"`
Redirect *string `json:"redirect"`
Weight *int32 `json:"weight"`
IsIframe *bool `json:"isIframe"`
IsHidden *bool `json:"isHidden"`
IsCache *bool `json:"isCache"`
IsHome *bool `json:"isHome"`
IsAffix *bool `json:"isAffix"`
Children []*RegisterMenuNode `json:"children"`
}
type RegisterMenuReply ¶ added in v1.2.10
type RegisterMenuRequest ¶ added in v1.2.10
type RegisterMenuRequest struct {
AppKeyword string `json:"appKeyword"`
Mode string `json:"mode"`
Menus []*RegisterMenuNode `json:"menus"`
}
type RegisterReply ¶ added in v1.2.8
type RegisterRequest ¶ added in v1.2.8
type UpdateCurrentUserPasswordRequest ¶ added in v1.2.8
Source Files
¶
Click to show internal directories.
Click to hide internal directories.