You've already forked VptPassiveAdapter
Initial
This commit is contained in:
16
dto/file.go
Normal file
16
dto/file.go
Normal 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()
|
||||
}
|
Reference in New Issue
Block a user