mirror of
https://github.com/dstotijn/go-notion.git
synced 2024-11-24 08:42:26 +02:00
20 lines
490 B
Go
20 lines
490 B
Go
package notion
|
|
|
|
type Parent struct {
|
|
Type ParentType `json:"type,omitempty"`
|
|
|
|
BlockID string `json:"block_id,omitempty"`
|
|
PageID string `json:"page_id,omitempty"`
|
|
DatabaseID string `json:"database_id,omitempty"`
|
|
Workspace bool `json:"workspace,omitempty"`
|
|
}
|
|
|
|
type ParentType string
|
|
|
|
const (
|
|
ParentTypeDatabase ParentType = "database_id"
|
|
ParentTypePage ParentType = "page_id"
|
|
ParentTypeBlock ParentType = "block_id"
|
|
ParentTypeWorkspace ParentType = "workspace"
|
|
)
|