Documentation ¶
Index ¶
- Constants
- Variables
- func WithUserToken(ctx context.Context, userToken string) context.Context
- type AppMeta
- type Attachment
- type Conn
- func (c *Conn) Begin() (driver.Tx, error)
- func (c *Conn) Close() error
- func (c *Conn) Ping(ctx context.Context) error
- func (c *Conn) Prepare(query string) (driver.Stmt, error)
- func (c *Conn) PrepareContext(ctx context.Context, query string) (driver.Stmt, error)
- func (c *Conn) Query(query string, args []driver.Value) (driver.Rows, error)
- func (c *Conn) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error)
- type Driver
- type Field
- type FieldOption
- type FieldProperty
- type FieldType
- type Person
- type Record
- type RecordAttachments
- type RecordKey
- type RecordOptions
- type RecordPersons
- type RecordUrl
- type Rows
- type Table
- type URL
- type View
- type ViewType
Constants ¶
View Source
const ( BitableSchema = "bitable" DefaultPageSize int64 = 50 )
View Source
const ( RecordKeyPerson = "persons" RecordKeyUrl = "url" RecordKeyOptions = "options" RecordKeyAttachments = "attachments" )
View Source
const (
FieldKeyRecordID = "record_id"
)
Variables ¶
View Source
var (
ErrNullValue = errors.New("null value")
)
Functions ¶
Types ¶
type Conn ¶
type Conn struct { *lark.BiTable AppID string AppSecret string AppToken string // contains filtered or unexported fields }
Conn for db open
func (*Conn) PrepareContext ¶
PrepareContext statement for prepare exec
type Field ¶
type Field struct { FieldID string `json:"field_id,omitempty"` FieldName string `json:"field_name,omitempty"` Type int64 `json:"type,omitempty"` Property *FieldProperty `json:"property,omitempty"` }
Field a field info
type FieldOption ¶
FieldOption when field.Type can be select.
type FieldProperty ¶
type FieldProperty struct { Options []*FieldOption `json:"options,omitempty"` Formatter string `json:"formatter,omitempty"` DateFormat string `json:"date_format,omitempty"` TimeFormat string `json:"time_format,omitempty"` AutoFill bool `json:"auto_fill,omitempty"` Multiple bool `json:"multiple,omitempty"` TableId string `json:"table_id,omitempty"` ViewId string `json:"view_id,omitempty"` Fields []string `json:"fields,omitempty"` }
FieldProperty a field property. Different types have different values.
type FieldType ¶
type FieldType int64
const ( FieldTypeText FieldType = 1 // 多行文本 FieldTypeNumber FieldType = 2 // 数字 FieldTypeSelect FieldType = 3 // 单选 FieldTypeMultipleSelect FieldType = 4 // 多选 FieldTypeDate FieldType = 5 // 日期 FieldTypeCheckbox FieldType = 7 // 复选框 FieldTypePerson FieldType = 11 // 人员 FieldTypeLink FieldType = 15 // 超链接 FieldTypeAttachment FieldType = 17 // 附件 FieldTypeOneWayAssociation FieldType = 18 // 单向关联 FieldTypeReferenceLookup FieldType = 19 // 引用查找 FieldTypeFormula FieldType = 20 // 公式 FieldTypeTwoWayAssociation FieldType = 21 // 双向关联 FieldTypeCreateTime FieldType = 1001 // 创建时间 FieldTypeUpdateTime FieldType = 1002 // 最后更新时间 FieldTypeFounder FieldType = 1003 // 创建人 FieldTypeModifier FieldType = 1004 // 修改人 )
type RecordAttachments ¶
type RecordAttachments []Attachment
type RecordOptions ¶
type RecordOptions []string
type RecordPersons ¶
type RecordPersons []Person
Click to show internal directories.
Click to hide internal directories.