diff --git a/route/v1/file.go b/route/v1/file.go index ba62b73..2564f10 100644 --- a/route/v1/file.go +++ b/route/v1/file.go @@ -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 diff --git a/route/v1/file_read.go b/route/v1/file_read.go index 95a01e8..7324db5 100644 --- a/route/v1/file_read.go +++ b/route/v1/file_read.go @@ -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 {