Documentation ¶
Index ¶
- Constants
- type AppAccessToken
- type AppCtx
- type AppInfo
- type AppMode
- type AsyncTaskResult
- type Attachment
- type Avatar
- type AvatarImages
- type AvatarModel
- type BatchCreateRecord
- type BatchCreateRecordV2
- type BatchResult
- type BatchResultData
- type BatchResultDataError
- type Criterion
- type DisplayFields
- type EventInfo
- type ExecuteOptions
- type ExecutionInfo
- type ExecutionStatus
- type Expression
- type ExpressionField
- type ExtractFilterRecord
- type Field
- type FieldDefinition
- type FileUploadResult
- type FindStreamData
- type FindStreamParam
- type FlowExecuteResult
- type FlowUser
- type FlowUserAvatar
- type FuzzySearch
- type GetRecordsReqParam
- type GetRecordsReqParamV2
- type GlobalConfigResult
- type I18n
- type I18ns
- type LazyUserLookup
- type Locale
- type LookupResponse
- type LookupWithAPIName
- type LookupWithAvatar
- type MessageBody
- type MessageParam
- type MetaSort
- type Multilingual
- type NestedAttachmentSetting
- type NestedAutoNumberSetting
- type NestedAvatarSetting
- type NestedBackLookupSetting
- type NestedBooleanSetting
- type NestedCompositeSetting
- type NestedConditionSetting
- type NestedDateSetting
- type NestedDatetimeSetting
- type NestedEmailSetting
- type NestedEncryptNumberSetting
- type NestedEnumSetting
- type NestedFloatSetting
- type NestedFormulaSetting
- type NestedLookupSetting
- type NestedMultilingualSetting
- type NestedPhoneSetting
- type NestedReferenceFieldSetting
- type NestedRichTextSetting
- type NestedTextSetting
- type ObjFields
- type Option
- type Options
- type OqlResultSet
- type Order
- type RPCCliConf
- type RecordID
- type RecordsResult
- type RefFieldTableDescribe
- type RelatedToGlobalOption
- type RevokeOptions
- type Sorts
- type TaskInfo
- type TaskOpinion
- type TaskStatus
- type TaskType
- type TenantAccessToken
- type TenantInfo
- type TimeZone
- type TransactionOperation
- type TransactionRecordID
- type TypeSetting
- type UnauthPermissionInfo
- type UserSetting
Constants ¶
View Source
const ( // TaskStatusInProcess 等待审批中 TaskStatusInProcess = "in_process" // TaskStatusCompleted 任务完成 TaskStatusCompleted = "completed" // TaskStatusCanceled 任务取消 TaskStatusCanceled = "canceled" // TaskStatusFailed 任务失败 TaskStatusFailed = "failed" // TaskStatusAutoEnd 自动结束 TaskStatusAutoEnd = "auto_end" // TaskStatusAgreed 用户通过 TaskStatusAgreed = "agreed" // TaskStatusRejected 用户拒绝 TaskStatusRejected = "rejected" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppAccessToken ¶ added in v0.0.23
type AppCtx ¶
type AppCtx struct { Mode AppMode Env constants.PlatformEnvType Credential *cHttp.AppCredential }
func (*AppCtx) GetEnv ¶
func (a *AppCtx) GetEnv() constants.PlatformEnvType
type AsyncTaskResult ¶
type AsyncTaskResult struct {
TaskID int64 `json:"taskID"`
}
type Attachment ¶
type AvatarImages ¶
type AvatarModel ¶
type AvatarModel struct { Source string `json:"source"` Image *AvatarImages `json:"image"` Color string `json:"color"` ColorID string `json:"color_id" mapstructure:"color_id"` Content interface{} `json:"content"` }
type BatchCreateRecord ¶
type BatchCreateRecord struct {
RecordIDs []int64 `json:"record_ids"`
}
type BatchCreateRecordV2 ¶
type BatchCreateRecordV2 struct {
RecordIDs []int64 `json:"_ids"`
}
type BatchResult ¶ added in v0.0.22
type BatchResult struct { Code string `json:"code"` Msg string `json:"msg"` Data []BatchResultData `json:"data"` }
func (*BatchResult) HasError ¶ added in v0.0.22
func (b *BatchResult) HasError() bool
type BatchResultData ¶ added in v0.0.22
type BatchResultData struct { Success bool `json:"success"` ID int64 `json:"_id"` Errors []BatchResultDataError `json:"errors"` }
type BatchResultDataError ¶ added in v0.0.22
type BatchResultDataError struct {
Code string `json:"code"`
}
type Criterion ¶
type Criterion struct { Conditions []Expression `json:"conditions"` Logic string `json:"logic"` }
type DisplayFields ¶
type DisplayFields []LookupResponse
type ExecuteOptions ¶
type ExecuteOptions struct { // 流程入参 Params map[string]interface{} `json:"params"` }
type ExecutionInfo ¶
type ExecutionInfo struct { Status ExecutionStatus `json:"status"` Data map[string]interface{} `json:"data"` ErrCode *string `json:"errCode"` ErrMsg *string `json:"errMsg"` }
type ExecutionStatus ¶
type ExecutionStatus string
const ( ExecutionStatusWait ExecutionStatus = "wait" ExecutionStatusInProcess ExecutionStatus = "in_process" ExecutionStatusEnd ExecutionStatus = "end" ExecutionStatusRejected ExecutionStatus = "rejected" ExecutionStatusCanceled ExecutionStatus = "canceled" ExecutionStatusFailed ExecutionStatus = "failed" ExecutionStatusAgreed ExecutionStatus = "agreed" )
type Expression ¶
type Expression struct { Index int64 `json:"index"` Left ExpressionField `json:"left"` Operator string `json:"operator"` Right ExpressionField `json:"right"` }
type ExpressionField ¶
type ExtractFilterRecord ¶
type Field ¶
type Field struct { ID int64 `json:"id"` TenantID int64 `json:"tenant_id"` ObjectID int64 `json:"object_id"` APIName string `json:"api_name"` APIAlias string `json:"api_alias,omitempty"` Label I18ns `json:"label"` Required bool `json:"required"` UniqueType int `json:"unique_type"` Type *TypeSetting `json:"type"` }
type FieldDefinition ¶
type FieldDefinition struct { ID int64 `json:"id" yaml:"id"` TenantID int64 `json:"tenant_id"` Column int64 `json:"column" yaml:"column"` Label I18ns `json:"label"` APIName string `json:"api_name"` ApiAlias string `json:"api_alias"` Namespace string `json:"namespace"` Desc I18ns `json:"description"` ObjectID int64 `json:"object_id"` ObjectAPIName string `json:"object_api_name"` ObjectApiAlias string `json:"object_api_alias"` Type *TypeSetting `json:"type"` Required bool `json:"required"` UniqueType int `json:"unique_type"` Domain int64 `json:"domain"` CreatedAt int64 `json:"created_at" ` CreatedBy LazyUserLookup `json:"created_by" ` UpdatedAt int64 `json:"updated_at"` UpdatedBy LazyUserLookup `json:"updated_by"` //字段是否有查询权限,0无查看权限,1有查看权限,nil时默认有查看权限 FieldPermission int64 `json:"field_permission,omitempty" mapstructure:"field_permission"` }
type FileUploadResult ¶
type FindStreamData ¶ added in v0.0.23
type FindStreamData struct { Records interface{} `json:"records"` UnauthFields [][]string `json:"unauthFields"` }
type FindStreamParam ¶ added in v0.0.23
type FlowExecuteResult ¶
type FlowExecuteResult struct { ExecutionID int64 `json:"executionId"` Status ExecutionStatus `json:"status"` Data map[string]interface{} `json:"data"` ErrCode *string `json:"errCode"` ErrMsg *string `json:"errMsg"` }
type FlowUser ¶
type FlowUser struct { // aPaaS UserID UserID int64 `json:"userId"` // Lark OpenID FeishuOpenID string `json:"feishuOpenId"` // 用户名 UserName Multilingual `json:"userName"` }
type FlowUserAvatar ¶
type FlowUserAvatar struct { // 用户头像 URL URL string `json:"url"` }
type FuzzySearch ¶ added in v0.0.16
type GetRecordsReqParam ¶
type GetRecordsReqParam struct { Criterion interface{} `json:"criterion"` Order []*Order `json:"order"` FieldApiNames []string `json:"field_api_names"` Offset int64 `json:"offset"` Limit int64 `json:"limit"` NeedTotalCount bool `json:"need_total_count"` IgnoreBackLookupField bool `json:"ignore_back_lookup_field"` NeedFilterUserPermission bool `json:"need_filter_user_permission"` FuzzySearch *FuzzySearch `json:"fuzzySearch"` ProcessAuthFieldType *constants.ProcessAuthFieldType `json:"process_auth_field_type"` }
type GetRecordsReqParamV2 ¶
type GlobalConfigResult ¶
type GlobalConfigResult struct { Configs []struct { BizType string `json:"biz_type"` Extra struct { AccessSpecifier string `json:"access_specifier"` } `json:"extra"` Key string `json:"key"` NameSpace string `json:"name_space"` Value string `json:"value"` } `json:"configs"` Total int `json:"total"` }
type LazyUserLookup ¶
type LazyUserLookup struct {
// contains filtered or unexported fields
}
type Locale ¶
type Locale = UserSetting
type LookupResponse ¶
type LookupWithAPIName ¶
type LookupWithAvatar ¶
type LookupWithAvatar struct { ID int64 `json:"id"` Name string `json:"name"` I18nName I18ns `json:"i18n_name,omitempty"` Avatar *AvatarModel `json:"avatar,omitempty"` IsDeleted bool `json:"is_deleted"` }
type MessageBody ¶
type MessageBody struct { Icon string `json:"icon"` // "success" | "error" | "progress" | "info" Percent int64 `json:"percent"` TargetUsers []int64 `json:"targetUsers"` Title *faassdk.Multilingual `json:"title"` Detail *faassdk.Multilingual `json:"detail"` }
type MessageParam ¶
type Multilingual ¶
type NestedAttachmentSetting ¶
type NestedAutoNumberSetting ¶
type NestedAvatarSetting ¶
type NestedAvatarSetting struct { // display DisplayStyle string `json:"display_style"` }
type NestedBackLookupSetting ¶
type NestedBackLookupSetting struct { // property IsArray bool `json:"is_array"` IsInherit bool `json:"is_inherit"` RelatedToObjectID int64 `json:"related_to_object_id"` RelatedToObjectAPIName string `json:"related_to_object_api_name"` RelatedToFieldID int64 `json:"related_to_field_id"` RelatedToFieldAPIName string `json:"related_to_field_api_name"` // display RelatedToObjectName string `json:"related_to_object_name"` RelatedToFieldName string `json:"related_to_field_name"` }
type NestedBooleanSetting ¶
type NestedCompositeSetting ¶
type NestedCompositeSetting struct { // property Multiple bool `json:"multiple"` RelatedToID int64 `json:"related_to_id,omitempty"` RelatedToAPIName string `json:"related_to_api_name,omitempty"` IsExtract bool `json:"is_extract,omitempty"` RelationID int64 `json:"relation_id,omitempty"` // ExtractCompositeSetting Filter *Criterion `json:"filter,omitempty"` Sort *Sorts `json:"sort,omitempty"` FilterRecord *ExtractFilterRecord `json:"filter_record,omitempty"` RelatedToFieldID int64 `json:"related_to_field_id,omitempty"` RelatedToFieldAPIName string `json:"related_to_field_api_name,omitempty"` // display RelatedToLabel *I18ns `json:"related_to_label,omitempty"` // not in cache RelatedToFields []*Field `json:"related_to_fields,omitempty"` }
type NestedConditionSetting ¶
type NestedConditionSetting struct { // property TargetObject LookupWithAPIName `json:"target_object"` LeftFilterFields interface{} `json:"left_filter_fields"` RightFilterFields interface{} `json:"right_filter_fields"` }
type NestedDateSetting ¶
type NestedDateSetting struct { // display Placeholder I18ns `json:"placeholder"` }
type NestedDatetimeSetting ¶
type NestedDatetimeSetting struct { // display Placeholder I18ns `json:"placeholder"` }
type NestedEmailSetting ¶
type NestedEmailSetting struct { // display Placeholder I18ns `json:"placeholder"` }
type NestedEnumSetting ¶
type NestedEnumSetting struct { IsArray bool `json:"is_array"` OptionType string `json:"option_type"` Options *Options `json:"options"` RelatedToGlobalOption RelatedToGlobalOption `json:"related_to_global_option"` }
type NestedFloatSetting ¶
type NestedFormulaSetting ¶
type NestedFormulaSetting struct { // property MaxLength int64 `json:"max_length"` ReturnType string `json:"return_type"` FormulaVersion int64 `json:"formula_version"` ProcessMode string `json:"process_mode"` HasRefEncryptedField bool `json:"has_ref_encrypted_field"` // resolve RelatedToConst string `json:"ref_to_const"` RefRecords I18ns `json:"ref_record_ids"` RefFieldType map[string]string `json:"ref_field_type"` Formulas I18ns `json:"formulas"` RefAPINames I18ns `json:"ref_api_names"` // display ReturnFieldMeta map[string]interface{} `json:"return_field_meta"` BridgeAPIName []interface{} `json:"bridge_api_names"` }
type NestedLookupSetting ¶
type NestedLookupSetting struct { // property IsArray bool `json:"is_array,omitempty"` IsHierarchy bool `json:"is_hierarchy,omitempty"` TargetIsHierarchy bool `json:"target_is_hierarchy"` ReferencedObjectID int64 `json:"referenced_object_id"` ReferencedObjectAPIName string `json:"referenced_object_api_name,omitempty"` ReferencedObjectAPIAlias string `json:"referenced_object_api_alias,omitempty"` RelationID int64 `json:"relation_id,omitempty"` // resolve DisplayAsTree bool `json:"display_as_tree,omitempty"` DisplayFields DisplayFields `json:"display_fields,omitempty"` DisplayOrder Sorts `json:"display_order,omitempty"` // display DisplayStyle string `json:"display_style,omitempty"` ReferencedObjectLabel I18ns `json:"referenced_object_label,omitempty"` }
type NestedPhoneSetting ¶
type NestedPhoneSetting struct { // display Placeholder I18ns `json:"placeholder"` }
type NestedReferenceFieldSetting ¶
type NestedReferenceFieldSetting struct { // property CurrentLookupFieldID int64 `json:"current_lookup_field_id"` CurrentLookupFieldAPIName string `json:"current_lookup_field_api_name,omitempty"` TargetReferenceFieldID int64 `json:"target_reference_field_id"` TargetReferenceFieldAPIName string `json:"target_reference_field_api_name,omitempty"` TargetReferencedObjectID int64 `json:"target_reference_object_id,omitempty"` TargetReferencedObjectAPIName string `json:"target_referenced_object_api_name,omitempty"` // display TargetReferenceField *Field `json:"target_reference_field,omitempty"` // 支持analytics接入专表专用提供 TargetRefFieldTblDesc *RefFieldTableDescribe `json:"target_ref_field_tbl_desc,omitempty"` }
type NestedRichTextSetting ¶
type NestedRichTextSetting struct { // resolve MaxLength int `json:"max_length"` }
type NestedTextSetting ¶
type Option ¶
type Option struct { APINameID string `json:"id"` // 输出标记 id Active int64 `json:"active"` APIAlias string `json:"api_alias,omitempty"` // rpc 调用时传递的 ApiAlias APIName string `json:"api_name,omitempty"` // 将 ApiAlias 输出 // display ColorID string `json:"color_id"` Label I18ns `json:"name"` Description I18ns `json:"description"` }
type OqlResultSet ¶
type OqlResultSet struct {
Rows interface{} `json:"rows"`
}
type RPCCliConf ¶
type RPCCliConf struct { Psm string `yaml:"Psm" json:"Psm"` DebugAddr string `yaml:"DebugAddr" json:"DebugAddr"` Cluster string `yaml:"Cluster" json:"Cluster"` IDC string `yaml:"IDC" json:"IDC"` Timeout time.Duration `yaml:"Timeout" json:"Timeout"` ConnTimeout time.Duration `yaml:"ConnTimeout" json:"ConnTimeout"` }
type RecordsResult ¶
type RecordsResult struct { Records []interface{} `json:"records"` Total int64 `json:"total"` }
type RefFieldTableDescribe ¶
type RelatedToGlobalOption ¶
type RevokeOptions ¶
type RevokeOptions struct {
Reason Multilingual `json:"reason"`
}
type TaskInfo ¶
type TaskInfo struct { TaskID int64 `json:"taskId"` // 任务名称 Label Multilingual `json:"label"` // 任务类型 TaskType string `json:"taskType"` // 任务状态 TaskStatus TaskStatus `json:"taskStatus"` // 任务意见列表 OpinionList []*TaskOpinion `json:"opinionList"` // 指派人列表 AssigneeList []*FlowUser `json:"assigneeList"` // 节点开始时间 StartedTime int64 `json:"startedTime"` // 节点完成时间 CompletedTime *int64 `json:"completedTime"` }
type TaskOpinion ¶
type TaskStatus ¶
type TaskStatus string
type TenantAccessToken ¶ added in v0.0.23
type TenantInfo ¶ added in v0.0.22
type TransactionOperation ¶
type TransactionOperation struct { OperationType constants.OperationType `json:"operationType"` ObjectAPIName string `json:"objectApiName"` Input string `json:"input"` }
type TransactionRecordID ¶
type TransactionRecordID struct {
ID interface{} `json:"_id"`
}
type TypeSetting ¶
type TypeSetting struct { Name string `json:"name"` Settings interface{} `json:"settings"` }
type UnauthPermissionInfo ¶ added in v0.0.22
type UserSetting ¶
Click to show internal directories.
Click to hide internal directories.