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.
|
|
|
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 `json:"query_date"`
|
|
|
|
}
|