Kick off tank 2.0

This commit is contained in:
zicla
2018-11-22 21:16:53 +08:00
parent 55124ed7e8
commit 90a0e04590
9 changed files with 470 additions and 4 deletions

20
rest/image_cache_model.go Normal file
View File

@ -0,0 +1,20 @@
package rest
/**
* 图片缓存,对于那些处理过的图片,统一管理在这里。
*/
type ImageCache struct {
Base
UserUuid string `json:"userUuid"`
MatterUuid string `json:"matterUuid"`
Uri string `json:"name"`
Md5 string `json:"md5"`
Size int64 `json:"size"`
Path string `json:"path"`
Matter *Matter `gorm:"-" json:"matter"`
}
// set File's table name to be `profiles`
func (ImageCache) TableName() string {
return TABLE_PREFIX + "image_cache"
}