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:
17
file.go
Normal file
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"
|
||||
)
|
Reference in New Issue
Block a user