Documentation ¶
Index ¶
- type AutoID
- type AutoIDV3
- type AvatarOrLogo
- type AvatarOrLogoV3
- type Bigint
- type BigintV3
- type Boolean
- type BooleanV3
- type CompositeType
- type CompositeTypeV3
- type Date
- type DateTime
- type DateTimeV3
- type DateV3
- type Decimal
- type DecimalV3
- type Email
- type EmailV3
- type ExtractSingleRecord
- type ExtractSingleRecordV3
- type FieldBase
- type FieldBaseV3
- type File
- type FileV3
- type Formula
- type FormulaV3
- type Lookup
- type LookupV3
- type MobileNumber
- type MobileNumberV3
- type Multilingual
- type MultilingualV3
- type Number
- type NumberV3
- type Option
- type OptionItem
- type OptionItemV3
- type OptionV3
- type ReferenceField
- type ReferenceFieldV3
- type Region
- type RegionV3
- type RichText
- type RichTextV3
- type Rollup
- type RollupV3
- type SortCondition
- type Text
- type TextV3
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoIDV3 ¶ added in v0.0.35
type AutoIDV3 struct { FieldBaseV3 GenerateMethod string `json:"generateMethod"` // "random"|"incremental" DigitsNumber int64 `json:"digitsNumber"` Prefix string `json:"prefix"` Suffix string `json:"suffix"` }
type AvatarOrLogo ¶
type AvatarOrLogoV3 ¶ added in v0.0.35
type AvatarOrLogoV3 struct { FieldBaseV3 DisplayStyle string `json:"displayStyle"` }
type BigintV3 ¶ added in v0.0.35
type BigintV3 struct { FieldBaseV3 Required bool `json:"required"` Unique bool `json:"unique"` }
type BooleanV3 ¶ added in v0.0.35
type BooleanV3 struct { FieldBaseV3 DescriptionWhenTrue *faassdk.MultilingualV3 `json:"descriptionWhenTrue"` DescriptionWhenFalse *faassdk.MultilingualV3 `json:"descriptionWhenFalse"` DefaultValue bool `json:"defaultValue"` }
type CompositeType ¶
type CompositeTypeV3 ¶ added in v0.0.35
type CompositeTypeV3 struct { FieldBaseV3 CompositeTypeAPIName string `json:"compositeTypeAPIName"` Required bool `json:"required"` Multiple bool `json:"multiple"` SubFields map[string]interface{} `json:"subFields"` }
type DateTimeV3 ¶ added in v0.0.35
type DateTimeV3 struct { FieldBaseV3 Required bool `json:"required"` }
type DateV3 ¶ added in v0.0.35
type DateV3 struct { FieldBaseV3 Required bool `json:"required"` }
type DecimalV3 ¶ added in v0.0.35
type DecimalV3 struct { FieldBaseV3 Required bool `json:"required"` Unique bool `json:"unique"` DisplayAsPercentage bool `json:"displayAsPercentage"` DecimalPlacesNumber int `json:"decimalPlacesNumber"` }
type EmailV3 ¶ added in v0.0.35
type EmailV3 struct { FieldBaseV3 Required bool `json:"required"` Unique bool `json:"unique"` }
type ExtractSingleRecord ¶
type ExtractSingleRecordV3 ¶ added in v0.0.35
type ExtractSingleRecordV3 struct { FieldBaseV3 CompositeTypeAPIName string `json:"compositeTypeAPIName"` SubFields map[string]interface{} `json:"subFields"` Filter *structs.Criterion `json:"filter"` SortConditions *structs.Sorts `json:"sortConditions"` RecordPosition int64 `json:"recordPosition"` }
type FieldBase ¶
type FieldBase struct { Type string `json:"type"` APIName string `json:"apiName"` Label structs.I18ns `json:"label"` }
func (*FieldBase) ToFieldBaseV3 ¶ added in v0.0.35
func (f *FieldBase) ToFieldBaseV3() FieldBaseV3
type FieldBaseV3 ¶ added in v0.0.35
type FieldBaseV3 struct { Type string `json:"type"` APIName string `json:"apiName"` Label *faassdk.MultilingualV3 `json:"label"` }
type FileV3 ¶ added in v0.0.35
type FileV3 struct { FieldBaseV3 Required bool `json:"required"` Multiple bool `json:"multiple"` FileTypes []string `json:"fileTypes"` }
type FormulaV3 ¶ added in v0.0.35
type FormulaV3 struct { FieldBaseV3 ReturnType string `json:"returnType"` Formula *faassdk.MultilingualV3 `json:"formula"` }
type Lookup ¶
type Lookup struct { FieldBase Required bool `json:"required"` Multiple bool `json:"multiple"` ObjectAPIName string `json:"objectAPIName"` Hierarchy bool `json:"hierarchy"` DisplayStyle string `json:"displayStyle"` SortConditions []SortCondition `json:"sortConditions"` Filter []interface{} `json:"filter"` // TODO 未返回 }
type LookupV3 ¶ added in v0.0.35
type LookupV3 struct { FieldBaseV3 Required bool `json:"required"` Multiple bool `json:"multiple"` ObjectAPIName string `json:"objectAPIName"` Hierarchy bool `json:"hierarchy"` DisplayStyle string `json:"displayStyle"` SortConditions []SortCondition `json:"sortConditions"` Filter []interface{} `json:"filter"` // TODO 未返回 }
type MobileNumber ¶
type MobileNumberV3 ¶ added in v0.0.35
type MobileNumberV3 struct { FieldBaseV3 Required bool `json:"required"` Unique bool `json:"unique"` }
type Multilingual ¶
type MultilingualV3 ¶ added in v0.0.35
type NumberV3 ¶ added in v0.0.35
type NumberV3 struct { FieldBaseV3 Required bool `json:"required"` Unique bool `json:"unique"` DisplayAsPercentage bool `json:"displayAsPercentage"` DecimalPlacesNumber int `json:"decimalPlacesNumber"` }
type Option ¶
type Option struct { FieldBase Required bool `json:"required"` Multiple bool `json:"multiple"` OptionSource string `json:"optionSource"` // 暴露给开发者:custom, global; 底层存储:local, global GlobalOptionAPIName string `json:"globalOptionAPIName"` OptionList []*OptionItem `json:"optionList"` }
func (*Option) ToOptionV3 ¶ added in v0.0.35
type OptionItem ¶
type OptionItem struct { Label structs.I18ns `json:"label"` APIName string `json:"apiName"` Description structs.I18ns `json:"description"` Color string `json:"color"` Active bool `json:"active"` }
func (*OptionItem) ToOptionItemV3 ¶ added in v0.0.35
func (o *OptionItem) ToOptionItemV3() *OptionItemV3
type OptionItemV3 ¶ added in v0.0.35
type OptionItemV3 struct { Label *faassdk.MultilingualV3 `json:"label"` APIName string `json:"apiName"` Description *faassdk.MultilingualV3 `json:"description"` Color string `json:"color"` Active bool `json:"active"` }
type OptionV3 ¶ added in v0.0.35
type OptionV3 struct { FieldBaseV3 Required bool `json:"required"` Multiple bool `json:"multiple"` OptionSource string `json:"optionSource"` // 暴露给开发者:custom, global; 底层存储:local, global GlobalOptionAPIName string `json:"globalOptionAPIName"` OptionList []*OptionItemV3 `json:"optionList"` }
type ReferenceField ¶
type ReferenceFieldV3 ¶ added in v0.0.35
type ReferenceFieldV3 struct { FieldBaseV3 GuideFieldAPIName string `json:"guideFieldAPIName"` FieldAPIName string `json:"fieldAPIName"` }
type RegionV3 ¶ added in v0.0.35
type RegionV3 struct { FieldBaseV3 Required bool `json:"required"` Multiple bool `json:"multiple"` OptionLevel bool `json:"optionLevel"` StrictLevel int64 `json:"strictLevel"` Filter []*structs.RegionFilterV3 `json:"filter"` }
type RichTextV3 ¶ added in v0.0.35
type RichTextV3 struct { FieldBaseV3 Required bool `json:"required"` // 默认值:false MaxLength int `json:"maxLength"` // 默认值:1000 }
type RollupV3 ¶ added in v0.0.35
type RollupV3 struct { FieldBaseV3 RollupType string `json:"rollupType"` RollupObjectApiName string `json:"rollupObjectApiName"` RollupFieldApiName string `json:"rollupFieldApiName"` RollupLookupFieldApiName string `json:"rollupLookupFieldApiName"` Filter *structs.Criterion `json:"filter"` // todo wby 待确认 }
type SortCondition ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.