github.com/SupenBysz/gf-admin-community@v0.7.4/sys_model/sys_hook/sys_auth.go (about) 1 package sys_hook 2 3 import ( 4 "context" 5 "github.com/SupenBysz/gf-admin-community/sys_model" 6 "github.com/SupenBysz/gf-admin-community/sys_model/sys_enum" 7 ) 8 9 type AuthHookFunc func(ctx context.Context, actionType sys_enum.AuthActionType, info *sys_model.SysUser) error 10 type AuthHookInfo struct { 11 Key sys_enum.AuthActionType 12 Value AuthHookFunc 13 UserType sys_enum.UserType `json:"userType" dc:"用户类型"` 14 }