Add date field

This commit is contained in:
link 2023-02-10 11:10:46 +00:00
parent 0c813db38e
commit 7fad6fea5e
2 changed files with 2 additions and 0 deletions

View File

@ -323,6 +323,7 @@ func DirPath(c *gin.Context) {
t.IsDir = info[i].IsDir
t.Name = info[i].Name
t.Modified = info[i].Date
t.Date = info[i].Date
t.Size = info[i].Size
t.Path = info[i].Path
t.Extensions = info[i].Extensions

View File

@ -25,6 +25,7 @@ type ObjResp struct {
Thumb string `json:"thumb"`
Type int `json:"type"`
Path string `json:"path"`
Date time.Time `json:"date"`
Extensions map[string]interface{} `json:"extensions"`
}
type FsListResp struct {