Skip to content

Commit

Permalink
add file fields to support email file user info
Browse files Browse the repository at this point in the history
  • Loading branch information
rntk committed Jan 28, 2025
1 parent 34f9a10 commit 5444722
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions files.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5444722

Please sign in to comment.