Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Torrent ¶
type Torrent struct { Id int64 `json:"id"` InfoHash string `orm:"unique" json:"infoHash"` Name string `orm:"type(text)" json:"name"` // FileType string `orm:"size(30)"` LastDownloadAt time.Time `orm:"null;type(datetime)" json:"lastDownDate"` LastDownloadIp string `orm:"null;size(50)"` Hot uint64 `json:"hot"` // 下载热度 FileLen uint64 `json:"fileLength"` // 文件大小 FileCount int `json:"fileCount"` // 文件数量 Magnet string `json:"magnet"` // 磁力链接 Md5 string `orm:"size(156);null"` Enable bool `json:"enable"` // 审核标志 FileList []*File `orm:"reverse(many)"` // multiple files. CreateDate time.Time `orm:"type(datetime)" json:"createDate"` CreateAt time.Time `orm:"auto_now_add;type(datetime)" json:"-"` }
Click to show internal directories.
Click to hide internal directories.