蓝眼网盘定制版
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.
 
 

20 lines
510 B

package rest
/**
* 图片缓存,对于那些处理过的图片,统一管理在这里。
*/
type ImageCache struct {
Base
UserUuid string `json:"userUuid"`
MatterUuid string `json:"matterUuid"`
Mode string `json:"mode"`
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"
}