1
0
mirror of https://github.com/dstotijn/go-notion.git synced 2025-06-15 00:05:04 +02:00

Fix database page property types

Fixes #12
This commit is contained in:
David Stotijn
2021-05-24 18:00:20 +02:00
parent 14d2e8c377
commit c675641a4c
3 changed files with 170 additions and 46 deletions

View File

@ -73,46 +73,10 @@ type People struct {
People []User `json:"people"`
}
type Files struct {
Files []File `json:"people"`
}
type File struct {
Name string `json:"name"`
}
type Checkbox struct {
Checkbox bool `json:"checked"`
}
type URL struct {
URL string `json:"url"`
}
type Email struct {
Email string `json:"email"`
}
type PhoneNumber struct {
PhoneNumber string `json:"phone_number"`
}
type CreatedTime struct {
CreatedTime time.Time `json:"created_time"`
}
type CreatedBy struct {
CreatedBy User `json:"created_by"`
}
type LastEditedTime struct {
LastEditedTime time.Time `json:"last_edited_time"`
}
type LastEditedBy struct {
LastEditedBy User `json:"last_edited_by"`
}
type DatabaseProperty struct {
ID string `json:"id"`
Type DatabasePropertyType `json:"type"`