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"`
|
||||
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"
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user