1
0
mirror of https://github.com/dstotijn/go-notion.git synced 2025-06-25 00:36:54 +02:00

Add file metadata to file DB page prop

This commit is contained in:
David Stotijn
2021-12-20 20:12:44 +01:00
parent a2507e3ec1
commit 50cebe29de
6 changed files with 48 additions and 68 deletions

17
file.go Normal file

@ -0,0 +1,17 @@
package notion
type FileFile struct {
URL string `json:"url"`
ExpiryTime DateTime `json:"expiry_time"`
}
type FileExternal struct {
URL string `json:"url"`
}
type FileType string
const (
FileTypeFile FileType = "file"
FileTypeExternal FileType = "external"
)