Documentation ¶
Index ¶
- func ByteCountIEC[T int64 | uint64](b T) string
- func ByteCountSI[T int64 | uint64](b T) string
- 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 ByteCountIEC ¶ added in v0.2.100
ByteCountIEC 以1024作为基数
func ByteCountSI ¶ added in v0.2.100
ByteCountSI 以1000作为基数
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.