Documentation ¶
Index ¶
- type AuditHookFunc
- type AuditHookInfo
- type AuthHookFunc
- type AuthHookInfo
- type CasbinHookFunc
- type CasbinHookInfo
- type FileHookFunc
- type FileHookInfo
- type InviteRegisterHookFunc
- type InviteRegisterHookInfo
- type InviteStateHookFunc
- type JwtHookFunc
- type JwtHookInfo
- type RoleMemberChangeHookFunc
- type UserHookFunc
- type UserHookInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditHookFunc ¶
type AuditHookFunc func(ctx context.Context, state sys_enum.AuditEvent, info *sys_entity.SysAudit) error
type AuditHookInfo ¶
type AuditHookInfo struct { Key sys_enum.AuditEvent Value AuditHookFunc Category int `json:"category" dc:"业务类别"` }
type AuthHookFunc ¶
type AuthHookInfo ¶
type AuthHookInfo struct { Key sys_enum.AuthActionType Value AuthHookFunc UserType sys_enum.UserType `json:"userType" dc:"用户类型"` }
type CasbinHookFunc ¶
type CasbinHookInfo ¶
type CasbinHookInfo sys_model.HookEventType[sys_enum.UserType, CasbinHookFunc]
type FileHookFunc ¶
type FileHookFunc sys_model.HookFunc[sys_enum.UploadEventState, sys_entity.SysFile]
type FileHookInfo ¶
type FileHookInfo sys_model.HookEventType[sys_enum.UploadEventState, FileHookFunc]
type InviteRegisterHookFunc ¶
type InviteRegisterHookInfo ¶
type InviteRegisterHookInfo struct { Key sys_enum.InviteType Value InviteRegisterHookFunc }
type InviteStateHookFunc ¶
type InviteStateHookFunc func(ctx context.Context, state sys_enum.InviteState, invite *sys_model.InviteRes) error
InviteStateHookFunc 订阅邀约状态
type JwtHookFunc ¶
type JwtHookFunc func(ctx context.Context, claims *sys_model.JwtCustomClaims) (*sys_model.JwtCustomClaims, error)
type JwtHookInfo ¶
type JwtHookInfo sys_model.HookEventType[sys_enum.UserType, JwtHookFunc]
type RoleMemberChangeHookFunc ¶
type RoleMemberChangeHookFunc func(ctx context.Context, event sys_enum.RoleMemberChange, role sys_entity.SysRole, sysUser *sys_model.SysUser) (bool, error)
RoleMemberChangeHookFunc 团队成员发生更改处理逻辑
type UserHookFunc ¶
type UserHookInfo ¶
type UserHookInfo sys_model.HookEventType[sys_enum.UserEvent, UserHookFunc]
Click to show internal directories.
Click to hide internal directories.