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:
parent
0300613dd4
commit
876532e02f
4
block.go
4
block.go
@ -35,6 +35,7 @@ type Block struct {
|
|||||||
PDF *FileBlock `json:"pdf,omitempty"`
|
PDF *FileBlock `json:"pdf,omitempty"`
|
||||||
Bookmark *Bookmark `json:"bookmark,omitempty"`
|
Bookmark *Bookmark `json:"bookmark,omitempty"`
|
||||||
Equation *Equation `json:"equation,omitempty"`
|
Equation *Equation `json:"equation,omitempty"`
|
||||||
|
Divider *Divider `json:"divider,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type RichTextBlock struct {
|
type RichTextBlock struct {
|
||||||
@ -102,6 +103,8 @@ type Bookmark struct {
|
|||||||
Caption []RichText `json:"caption,omitempty"`
|
Caption []RichText `json:"caption,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Divider struct{}
|
||||||
|
|
||||||
type BlockType string
|
type BlockType string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -125,6 +128,7 @@ const (
|
|||||||
BlockTypePDF BlockType = "pdf"
|
BlockTypePDF BlockType = "pdf"
|
||||||
BlockTypeBookmark BlockType = "bookmark"
|
BlockTypeBookmark BlockType = "bookmark"
|
||||||
BlockTypeEquation BlockType = "equation"
|
BlockTypeEquation BlockType = "equation"
|
||||||
|
BlockTypeDivider BlockType = "divider"
|
||||||
BlockTypeUnsupported BlockType = "unsupported"
|
BlockTypeUnsupported BlockType = "unsupported"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user