Documentation ¶
Index ¶
- func GetNamespace(ctx context.Context, appCtx *structs.AppCtx) (string, error)
- func GetParamUnauthField(ctx context.Context) map[string]interface{}
- func GetParamUnauthFieldByKey(ctx context.Context, key string) interface{}
- func GetParamUnauthFieldRecordByKey(ctx context.Context, key string) (unauthFields []string)
- func GetParamUnauthFieldRecordListByKey(ctx context.Context, key string) (unauthFieldsList [][]string)
- func GetRecordUnauthFieldByObject(ctx context.Context, objectAPIName string) map[int64][]string
- func GetRecordUnauthFieldByObjectAndRecordID(ctx context.Context, objectAPIName string, recordID int64) []string
- func GetTenantName(ctx context.Context, appCtx *structs.AppCtx) (string, error)
- func GoWithRecover(ctx context.Context, f func() error)
- func LocalDebugMode(ctx context.Context) context.Context
- func ParseBatchResult(resp *structs.BatchResult, result interface{}) error
- func ParseFlowVariableToMap(variables intern.ExecuteFlowVariables) map[string]interface{}
- func ParseInt64(v interface{}) (int64, error)
- func ParseMapToFlowVariable(params map[string]interface{}) intern.ExecuteFlowVariables
- func ParseMultilingualNewToOld(new structs.Multilingual) (old intern.Multilingual)
- func ParseUnauthFields(unauthFieldInput [][]string, unauthFieldOutput interface{}) error
- func SetAppConfToCtx(ctx context.Context, appCtx *structs.AppCtx) context.Context
- func SetCtx(ctx context.Context, appCtx *structs.AppCtx, method string) context.Context
- func SetLaneNameToCtx(ctx context.Context, lane string) context.Context
- func SetUserMetaInfoToContext(ctx context.Context, appCtx *structs.AppCtx) context.Context
- func StrInStrs(strs []string, str string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetParamUnauthField ¶ added in v0.0.22
GetParamUnauthField 获取参数的所有无权限字段
func GetParamUnauthFieldByKey ¶ added in v0.0.22
GetParamUnauthFieldByKey 通过 key 获取参数的无权限字段 - 如果参数类型为 Record 则返回 []string - 如果参数类型为 RecordList,则返回 [][]string
func GetParamUnauthFieldRecordByKey ¶ added in v0.0.22
GetParamUnauthFieldRecordByKey 通过 key 获取记录类型参数的无权限字段
func GetParamUnauthFieldRecordListByKey ¶ added in v0.0.22
func GetParamUnauthFieldRecordListByKey(ctx context.Context, key string) (unauthFieldsList [][]string)
GetParamUnauthFieldRecordListByKey 通过 key 获取记录列表类型参数的无权限字段
func GetRecordUnauthFieldByObject ¶ added in v0.0.22
func GetRecordUnauthFieldByObjectAndRecordID ¶ added in v0.0.22
func GetTenantName ¶
func GoWithRecover ¶
func LocalDebugMode ¶
LocalDebugMode 设置调试模式
func ParseBatchResult ¶ added in v0.0.22
func ParseBatchResult(resp *structs.BatchResult, result interface{}) error
func ParseFlowVariableToMap ¶
func ParseFlowVariableToMap(variables intern.ExecuteFlowVariables) map[string]interface{}
func ParseInt64 ¶
func ParseMapToFlowVariable ¶
func ParseMapToFlowVariable(params map[string]interface{}) intern.ExecuteFlowVariables
func ParseMultilingualNewToOld ¶
func ParseMultilingualNewToOld(new structs.Multilingual) (old intern.Multilingual)
func ParseUnauthFields ¶ added in v0.0.22
func SetAppConfToCtx ¶
func SetLaneNameToCtx ¶
SetLaneNameToCtx 设置泳道环境, 只在调试模式下生效
func SetUserMetaInfoToContext ¶ added in v0.0.28
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.