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

Add created_by and last_edited_by support, add archived for DB (#30)

This commit is contained in:
David Stotijn
2022-08-13 19:46:00 +02:00
committed by GitHub
parent 264ec2c28f
commit 1320ab0ee0
5 changed files with 120 additions and 17 deletions

View File

@ -13,7 +13,9 @@ import (
type Page struct {
ID string `json:"id"`
CreatedTime time.Time `json:"created_time"`
CreatedBy *BaseUser `json:"created_by,omitempty"`
LastEditedTime time.Time `json:"last_edited_time"`
LastEditedBy *BaseUser `json:"last_edited_by,omitempty"`
Parent Parent `json:"parent"`
Archived bool `json:"archived"`
URL string `json:"url"`