1
0
mirror of https://github.com/dstotijn/go-notion.git synced 2025-06-08 23:46:12 +02:00

Add divider block type

This commit is contained in:
David Stotijn 2021-12-17 12:37:28 +01:00
parent 0300613dd4
commit 876532e02f

View File

@ -35,6 +35,7 @@ type Block struct {
PDF *FileBlock `json:"pdf,omitempty"`
Bookmark *Bookmark `json:"bookmark,omitempty"`
Equation *Equation `json:"equation,omitempty"`
Divider *Divider `json:"divider,omitempty"`
}
type RichTextBlock struct {
@ -102,6 +103,8 @@ type Bookmark struct {
Caption []RichText `json:"caption,omitempty"`
}
type Divider struct{}
type BlockType string
const (
@ -125,6 +128,7 @@ const (
BlockTypePDF BlockType = "pdf"
BlockTypeBookmark BlockType = "bookmark"
BlockTypeEquation BlockType = "equation"
BlockTypeDivider BlockType = "divider"
BlockTypeUnsupported BlockType = "unsupported"
)