You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
526 B
24 lines
526 B
4 years ago
|
package serializer
|
||
|
|
||
|
import (
|
||
|
"encoding/gob"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
gob.Register(ObjectProps{})
|
||
|
}
|
||
|
|
||
|
// ObjectProps 文件、目录对象的详细属性信息
|
||
|
type ObjectProps struct {
|
||
|
CreatedAt time.Time `json:"created_at"`
|
||
|
UpdatedAt time.Time `json:"updated_at"`
|
||
|
Policy string `json:"policy"`
|
||
|
Size uint64 `json:"size"`
|
||
|
ChildFolderNum int `json:"child_folder_num"`
|
||
|
ChildFileNum int `json:"child_file_num"`
|
||
|
Path string `json:"path"`
|
||
|
|
||
|
QueryDate time.Time
|
||
|
}
|