mirror of
https://github.com/dstotijn/go-notion.git
synced 2025-06-23 00:30:41 +02:00
Add created_by
and last_edited_by
support, add archived
for DB (#30)
This commit is contained in:
9
user.go
9
user.go
@ -28,8 +28,15 @@ type BotOwner struct {
|
||||
User *User `json:"user"`
|
||||
}
|
||||
|
||||
// BaseUser contains the fields that are always returned for user objects.
|
||||
// See: https://developers.notion.com/reference/user#where-user-objects-appear-in-the-api
|
||||
type BaseUser struct {
|
||||
ID string `json:"id"`
|
||||
}
|
||||
|
||||
type User struct {
|
||||
ID string `json:"id"`
|
||||
BaseUser
|
||||
|
||||
Type UserType `json:"type"`
|
||||
Name string `json:"name"`
|
||||
AvatarURL string `json:"avatar_url"`
|
||||
|
Reference in New Issue
Block a user