From 7fad6fea5e7a6ff6c7a574885f8ec7cbe05cf7f1 Mon Sep 17 00:00:00 2001 From: link Date: Fri, 10 Feb 2023 11:10:46 +0000 Subject: [PATCH] Add date field --- route/v1/file.go | 1 + route/v1/file_read.go | 1 + 2 files changed, 2 insertions(+) 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 {