1
0
mirror of https://github.com/dstotijn/go-notion.git synced 2025-06-15 00:05:04 +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

13
icon.go
View File

@ -16,17 +16,8 @@ type Icon struct {
Type IconType `json:"type"`
Emoji *string `json:"emoji,omitempty"`
File *IconFile `json:"file,omitempty"`
External *IconExternal `json:"external,omitempty"`
}
type IconFile struct {
URL string `json:"url"`
ExpiryTime DateTime `json:"expiry_time"`
}
type IconExternal struct {
URL string `json:"url"`
File *FileFile `json:"file,omitempty"`
External *FileExternal `json:"external,omitempty"`
}
func (icon Icon) Validate() error {