feat: show encryption in filelist

This commit is contained in:
divyam234 2024-04-19 14:09:44 +05:30
parent 47856b6318
commit 274662cfca
2 changed files with 2 additions and 0 deletions

View file

@ -17,6 +17,7 @@ func ToFileOut(file models.File) *schemas.FileOut {
MimeType: file.MimeType,
Category: file.Category,
Path: file.Path,
Encrypted: file.Encrypted,
Size: size,
Starred: file.Starred,
ParentID: file.ParentID,

View file

@ -43,6 +43,7 @@ type FileOut struct {
Type string `json:"type"`
MimeType string `json:"mimeType"`
Category string `json:"category,omitempty"`
Encrypted bool `json:"encrypted"`
Path string `json:"path,omitempty"`
Size int64 `json:"size,omitempty"`
Starred bool `json:"starred"`