sys_hook

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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 AuthHookFunc func(ctx context.Context, actionType sys_enum.AuthActionType, info *sys_model.SysUser) error

type AuthHookInfo

type AuthHookInfo struct {
	Key      sys_enum.AuthActionType
	Value    AuthHookFunc
	UserType sys_enum.UserType `json:"userType" dc:"用户类型"`
}

type CasbinHookFunc

type CasbinHookFunc func(ctx context.Context, info sys_entity.SysUser) (bool, error)

type InviteRegisterHookFunc added in v0.5.7

type InviteRegisterHookFunc func(ctx context.Context, state sys_enum.InviteType, invite *sys_model.InviteRes, registerInfo *sys_model.SysUser) (bool, error)

type InviteRegisterHookInfo added in v0.5.7

type InviteRegisterHookInfo struct {
	Key   sys_enum.InviteType
	Value InviteRegisterHookFunc
}

type InviteStateHookFunc added in v0.5.7

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 MessageTypeHookFunc added in v0.7.2

type MessageTypeHookFunc func(ctx context.Context, messageType sys_enum.MessageType, info *sys_model.SysMessageRes) error

type RoleMemberChangeHookFunc added in v0.6.7

type RoleMemberChangeHookFunc func(ctx context.Context, event sys_enum.RoleMemberChange, role sys_entity.SysRole, sysUser *sys_model.SysUser) (bool, error)

RoleMemberChangeHookFunc 团队成员发生更改处理逻辑

Jump to

Keyboard shortcuts

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