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

19 lines
445 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"
ParentTypeWorkspace ParentType = "workspace"
)