mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-11-07 07:09:46 +00:00
Add date field
This commit is contained in:
parent
0c813db38e
commit
7fad6fea5e
@ -323,6 +323,7 @@ func DirPath(c *gin.Context) {
|
|||||||
t.IsDir = info[i].IsDir
|
t.IsDir = info[i].IsDir
|
||||||
t.Name = info[i].Name
|
t.Name = info[i].Name
|
||||||
t.Modified = info[i].Date
|
t.Modified = info[i].Date
|
||||||
|
t.Date = info[i].Date
|
||||||
t.Size = info[i].Size
|
t.Size = info[i].Size
|
||||||
t.Path = info[i].Path
|
t.Path = info[i].Path
|
||||||
t.Extensions = info[i].Extensions
|
t.Extensions = info[i].Extensions
|
||||||
|
|||||||
@ -25,6 +25,7 @@ type ObjResp struct {
|
|||||||
Thumb string `json:"thumb"`
|
Thumb string `json:"thumb"`
|
||||||
Type int `json:"type"`
|
Type int `json:"type"`
|
||||||
Path string `json:"path"`
|
Path string `json:"path"`
|
||||||
|
Date time.Time `json:"date"`
|
||||||
Extensions map[string]interface{} `json:"extensions"`
|
Extensions map[string]interface{} `json:"extensions"`
|
||||||
}
|
}
|
||||||
type FsListResp struct {
|
type FsListResp struct {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user