mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-11-06 14:49:52 +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.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
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user