Kick off tank 2.0
This commit is contained in:
20
rest/image_cache_model.go
Normal file
20
rest/image_cache_model.go
Normal 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"
|
||||
}
|
Reference in New Issue
Block a user