funs

package
v0.2.73 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsType added in v0.2.57

func AsType[T any](data interface{}) T

func FilterUnionMain added in v0.2.60

func FilterUnionMain(ctx context.Context, search *sys_model.SearchParams, unionMainIdColumnName string) *sys_model.SearchParams

FilterUnionMain 跨主体查询条件过滤

func If added in v0.1.0

func If[R any](condition bool, trueVal, falseVal R) R

func ProxyFunc added in v0.2.57

func ProxyFunc[TRes any, TFRes any](ctx context.Context, f func(ctx context.Context) (TFRes, error), def TRes, permissions ...*permission.SysPermissionTree) (TRes, error)

func ProxyFunc1 added in v0.2.57

func ProxyFunc1[TRes any, TData any, TFRes any](ctx context.Context, data TData, f func(ctx context.Context, data TData) (TFRes, error), def TRes, permissions ...*permission.SysPermissionTree) (TRes, error)

func ProxyFunc1Or added in v0.2.57

func ProxyFunc1Or[TRes any, TData any, TFRes any](ctx context.Context, data TData, f func(ctx context.Context, data TData) (TFRes, error), def TRes, permissions ...*permission.SysPermissionTree) (TRes, error)

func ProxyFunc2 added in v0.2.57

func ProxyFunc2[TRes any, TData any, TData1 any, TFRes any](ctx context.Context, data TData, data1 TData1, f func(ctx context.Context, data TData, data1 TData1) (TFRes, error), def TRes, permissions ...*permission.SysPermissionTree) (TRes, error)

func ProxyFunc2Or added in v0.2.57

func ProxyFunc2Or[TRes any, TData any, TData1 any, TFRes any](ctx context.Context, data TData, data1 TData1, f func(ctx context.Context, data TData, data1 TData1) (TFRes, error), def TRes, permissions ...*permission.SysPermissionTree) (TRes, error)

func ProxyFunc3 added in v0.2.57

func ProxyFunc3[TRes any, TData any, TData1 any, TData2 any, TFRes any](ctx context.Context, data TData, data1 TData1, data2 TData2, f func(ctx context.Context, data TData, data1 TData1, data2 TData2) (TFRes, error), def TRes, permissions ...*permission.SysPermissionTree) (TRes, error)

func ProxyFunc3Or added in v0.2.57

func ProxyFunc3Or[TRes any, TData any, TData1 any, TData2 any, TFRes any](ctx context.Context, data TData, data1 TData1, data2 TData2, f func(ctx context.Context, data TData, data1 TData1, data2 TData2) (TFRes, error), def TRes, permissions ...*permission.SysPermissionTree) (TRes, error)

func ProxyFunc4 added in v0.2.57

func ProxyFunc4[TRes any, TData any, TData1 any, TData2 any, TData3 any, TFRes any](ctx context.Context, data TData, data1 TData1, data2 TData2, data3 TData3, f func(ctx context.Context, data TData, data1 TData1, data3 TData2, data2 TData3) (TFRes, error), def TRes, permissions ...*permission.SysPermissionTree) (TRes, error)

func ProxyFunc4Or added in v0.2.57

func ProxyFunc4Or[TRes any, TData any, TData1 any, TData2 any, TData3 any, TFRes any](ctx context.Context, data TData, data1 TData1, data2 TData2, data3 TData3, f func(ctx context.Context, data TData, data1 TData1, data3 TData2, data2 TData3) (TFRes, error), def TRes, permissions ...*permission.SysPermissionTree) (TRes, error)

func ProxyFunc5 added in v0.2.57

func ProxyFunc5[TRes any, TData any, TData1 any, TData2 any, TData3 any, TData4 any, TFRes any](ctx context.Context, data TData, data1 TData1, data2 TData2, data3 TData3, data4 TData4, f func(ctx context.Context, data TData, data1 TData1, data3 TData2, data2 TData3, data4 TData4) (TFRes, error), def TRes, permissions ...*permission.SysPermissionTree) (TRes, error)

func ProxyFunc5Or added in v0.2.57

func ProxyFunc5Or[TRes any, TData any, TData1 any, TData2 any, TData3 any, TData4 any, TFRes any](ctx context.Context, data TData, data1 TData1, data2 TData2, data3 TData3, data4 TData4, f func(ctx context.Context, data TData, data1 TData1, data3 TData2, data2 TData3, data4 TData4) (TFRes, error), def TRes, permissions ...*permission.SysPermissionTree) (TRes, error)

func ProxyFunc6 added in v0.2.57

func ProxyFunc6[TRes any, TData any, TData1 any, TData2 any, TData3 any, TData4 any, TData5 any, TFRes any](ctx context.Context, data TData, data1 TData1, data2 TData2, data3 TData3, data4 TData4, data5 TData5, f func(ctx context.Context, data TData, data1 TData1, data3 TData2, data2 TData3, data4 TData4, data5 TData5) (TFRes, error), def TRes, permissions ...*permission.SysPermissionTree) (TRes, error)

func ProxyFunc6Or added in v0.2.57

func ProxyFunc6Or[TRes any, TData any, TData1 any, TData2 any, TData3 any, TData4 any, TData5 any, TFRes any](ctx context.Context, data TData, data1 TData1, data2 TData2, data3 TData3, data4 TData4, data5 TData5, f func(ctx context.Context, data TData, data1 TData1, data3 TData2, data2 TData3, data4 TData4, data5 TData5) (TFRes, error), def TRes, permissions ...*permission.SysPermissionTree) (TRes, error)

func ProxyFuncOr added in v0.2.57

func ProxyFuncOr[TRes any, TFRes any](ctx context.Context, f func(ctx context.Context) (TFRes, error), def TRes, permissions ...*permission.SysPermissionTree) (TRes, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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