mirror of
https://github.com/dstotijn/go-notion.git
synced 2025-06-08 23:46:12 +02:00
Add template
block type
This commit is contained in:
parent
c4783f697b
commit
9fc88f927b
2
block.go
2
block.go
@ -43,6 +43,7 @@ type Block struct {
|
||||
LinkPreview *LinkPreview `json:"link_preview,omitempty"`
|
||||
LinkToPage *LinkToPage `json:"link_to_page,omitempty"`
|
||||
SyncedBlock *SyncedBlock `json:"synced_block,omitempty"`
|
||||
Template *RichTextBlock `json:"template,omitempty"`
|
||||
}
|
||||
|
||||
type RichTextBlock struct {
|
||||
@ -183,6 +184,7 @@ const (
|
||||
BlockTypeLinkPreview BlockType = "link_preview"
|
||||
BlockTypeLinkToPage BlockType = "link_to_page"
|
||||
BlockTypeSyncedBlock BlockType = "synced_block"
|
||||
BlockTypeTemplate BlockType = "template"
|
||||
BlockTypeUnsupported BlockType = "unsupported"
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user