Finish some code refine work.

This commit is contained in:
zicla
2019-04-24 22:43:58 +08:00
parent 960c82ec36
commit f2bed9ac33
6 changed files with 203 additions and 195 deletions

View File

@ -15,7 +15,7 @@ const (
)
/**
* 文件。alien表示是否是应用内使用的文件比如说蓝眼云盘的头像alien = true 这种文件在上传时不需要指定存放目录,会统一放在同一个文件夹下。
* 文件。
*/
type Matter struct {
Base
@ -23,7 +23,6 @@ type Matter struct {
UserUuid string `json:"userUuid" gorm:"type:char(36);index:idx_uu"`
Username string `json:"username" gorm:"type:varchar(45) not null"`
Dir bool `json:"dir" gorm:"type:tinyint(1) not null;default:0"`
Alien bool `json:"alien" gorm:"type:tinyint(1) not null;default:0"`
Name string `json:"name" gorm:"type:varchar(255) not null"`
Md5 string `json:"md5" gorm:"type:varchar(45)"`
Size int64 `json:"size" gorm:"type:bigint(20) not null;default:0"`