bitable

package
v0.0.0-...-1340416 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FakerBitable = &fakerBitable{}

Functions

This section is empty.

Types

type Bitable

type Bitable interface {
	GetApp(ctx *core.Context) (*larkBitable.App, error)
	ListTables(ctx *core.Context) (map[string]*larkBitable.AppTable, error)
	CreateTable(ctx *core.Context, body *larkBitable.AppTableCreateReqBody) (string, error)
	BatchCreateTable(ctx *core.Context, body *larkBitable.AppTableBatchCreateReqBody) ([]string, error)

	ListViews(ctx *core.Context, tableId string) (map[string]*larkBitable.AppTableView, error)
	SyncViews(ctx *core.Context, tableId string, body []*larkBitable.AppTableView) error

	ListFields(ctx *core.Context, tableId string) (map[string]*larkBitable.AppTableField, error)
	CreateField(ctx *core.Context, tableId string, body *larkBitable.AppTableField) (string, error)
	UpdateField(ctx *core.Context, tableId string, body *larkBitable.AppTableField) error

	ListRecords(ctx *core.Context, tableId string) (map[string]*larkBitable.AppTableRecord, error)
	BatchCreateRecord(ctx *core.Context, tableId string, body *larkBitable.AppTableRecordBatchCreateReqBody) ([]string, error)
	BatchUpdateRecord(ctx *core.Context, tableId string, body *larkBitable.AppTableRecordBatchUpdateReqBody) error

	SyncRecords(ctx *core.Context, tableId string, recordFields []map[string]interface{}) error
}

func NewBitable

func NewBitable(appId string, appSecret string, appToken string) Bitable

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL