This commit is contained in:
2025-02-07 22:58:01 +08:00
commit ba4aad0ae5
23 changed files with 1061 additions and 0 deletions

16
dto/file.go Normal file
View File

@ -0,0 +1,16 @@
package dto
import "time"
type File struct {
BasePath string `json:"basePath"`
Url string `json:"url"`
Path string `json:"path"`
Name string `json:"name"`
StartTime time.Time `json:"startTime"`
EndTime time.Time `json:"endTime"`
}
func (f *File) GetDiffMs() int64 {
return f.EndTime.Sub(f.StartTime).Milliseconds()
}