1
0
mirror of https://github.com/dstotijn/go-notion.git synced 2024-11-24 08:42:26 +02:00
go-notion/parent.go
2022-08-20 15:40:41 +02:00

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"
)