Documentation ¶
Index ¶
- func CheckPermission[TRes any](ctx context.Context, f func() (TRes, error), ...) (TRes, error)
- func CheckPermissionOr[TRes any](ctx context.Context, f func() (TRes, error), ...) (TRes, error)
- func FilterUnionMain(ctx context.Context, search *sys_model.SearchParams, ...) *sys_model.SearchParams
- func If[R any](condition bool, trueVal, falseVal R) R
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPermission ¶
func CheckPermission[TRes any](ctx context.Context, f func() (TRes, error), permissions ...*permission.SysPermissionTree) (TRes, error)
func CheckPermissionOr ¶
func CheckPermissionOr[TRes any](ctx context.Context, f func() (TRes, error), permissions ...*permission.SysPermissionTree) (TRes, error)
func FilterUnionMain ¶ added in v0.2.60
func FilterUnionMain(ctx context.Context, search *sys_model.SearchParams, unionMainIdColumnName string) *sys_model.SearchParams
FilterUnionMain 跨主体查询条件过滤
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.