Documentation ¶
Index ¶
- func AsType[T any](data interface{}) T
- func FilterUnionMain(ctx context.Context, search *sys_model.SearchParams, ...) *sys_model.SearchParams
- func If[R any](condition bool, trueVal, falseVal R) R
- func ProxyFunc[TRes any, TFRes any](ctx context.Context, f func(ctx context.Context) (TFRes, error), def TRes, ...) (TRes, error)
- func ProxyFunc1[TRes any, TData any, TFRes any](ctx context.Context, data TData, ...) (TRes, error)
- func ProxyFunc1Or[TRes any, TData any, TFRes any](ctx context.Context, data TData, ...) (TRes, error)
- func ProxyFunc2[TRes any, TData any, TData1 any, TFRes any](ctx context.Context, data TData, data1 TData1, ...) (TRes, error)
- func ProxyFunc2Or[TRes any, TData any, TData1 any, TFRes any](ctx context.Context, data TData, data1 TData1, ...) (TRes, error)
- func ProxyFunc3[TRes any, TData any, TData1 any, TData2 any, TFRes any](ctx context.Context, data TData, data1 TData1, data2 TData2, ...) (TRes, error)
- func ProxyFunc3Or[TRes any, TData any, TData1 any, TData2 any, TFRes any](ctx context.Context, data TData, data1 TData1, data2 TData2, ...) (TRes, error)
- 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, ...) (TRes, error)
- 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, ...) (TRes, error)
- 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, ...) (TRes, error)
- 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, ...) (TRes, error)
- func ProxyFunc6[TRes any, TData any, TData1 any, TData2 any, TData3 any, TData4 any, ...](ctx context.Context, data TData, data1 TData1, data2 TData2, data3 TData3, ...) (TRes, error)
- func ProxyFunc6Or[TRes any, TData any, TData1 any, TData2 any, TData3 any, TData4 any, ...](ctx context.Context, data TData, data1 TData1, data2 TData2, data3 TData3, ...) (TRes, error)
- func ProxyFuncOr[TRes any, TFRes any](ctx context.Context, f func(ctx context.Context) (TFRes, error), def TRes, ...) (TRes, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterUnionMain ¶ added in v0.2.60
func FilterUnionMain(ctx context.Context, search *sys_model.SearchParams, unionMainIdColumnName string) *sys_model.SearchParams
FilterUnionMain 跨主体查询条件过滤
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 ProxyFunc1Or ¶ added in v0.2.57
func ProxyFunc2 ¶ added in v0.2.57
func ProxyFunc2Or ¶ added in v0.2.57
func ProxyFunc3 ¶ added in v0.2.57
func ProxyFunc3Or ¶ added in v0.2.57
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.
Click to show internal directories.
Click to hide internal directories.