mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-09-07 15:05:33 +08:00
feat: show encryption in filelist
This commit is contained in:
parent
47856b6318
commit
274662cfca
2 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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"`
|
||||
|
|
Loading…
Add table
Reference in a new issue