From 54447229f2a9ea87cd692779d318611960403e49 Mon Sep 17 00:00:00 2001 From: renat Date: Tue, 28 Jan 2025 10:27:36 +0100 Subject: [PATCH] add file fields to support email file user info --- files.go | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/files.go b/files.go index b26317145..8b2422c44 100644 --- a/files.go +++ b/files.go @@ -79,16 +79,24 @@ type File struct { Lines int `json:"lines"` LinesMore int `json:"lines_more"` - IsPublic bool `json:"is_public"` - PublicURLShared bool `json:"public_url_shared"` - Channels []string `json:"channels"` - Groups []string `json:"groups"` - IMs []string `json:"ims"` - InitialComment Comment `json:"initial_comment"` - CommentsCount int `json:"comments_count"` - NumStars int `json:"num_stars"` - IsStarred bool `json:"is_starred"` - Shares Share `json:"shares"` + IsPublic bool `json:"is_public"` + PublicURLShared bool `json:"public_url_shared"` + Channels []string `json:"channels"` + Groups []string `json:"groups"` + IMs []string `json:"ims"` + InitialComment Comment `json:"initial_comment"` + CommentsCount int `json:"comments_count"` + NumStars int `json:"num_stars"` + IsStarred bool `json:"is_starred"` + Shares Share `json:"shares"` + To []EmailFileUserInfo `json:"to"` + From []EmailFileUserInfo `json:"from"` +} + +type EmailFileUserInfo struct { + Address string `json:"address"` + Name string `json:"name"` + Original string `json:"original"` } type Share struct {