Fix the bridge and share entity.

This commit is contained in:
zicla
2019-04-29 02:14:12 +08:00
parent 120d9a55c8
commit ca721c78e6
12 changed files with 641 additions and 9 deletions

View File

@ -7,14 +7,14 @@ import (
type UploadToken struct {
Base
UserUuid string `json:"userUuid"`
FolderUuid string `json:"folderUuid"`
MatterUuid string `json:"matterUuid"`
ExpireTime time.Time `json:"expireTime"`
Filename string `json:"filename"`
Privacy bool `json:"privacy"`
Size int64 `json:"size"`
Ip string `json:"ip"`
UserUuid string `json:"userUuid" gorm:"type:char(36) not null"`
FolderUuid string `json:"folderUuid" gorm:"type:char(36) not null"`
MatterUuid string `json:"matterUuid" gorm:"type:char(36) not null"`
ExpireTime time.Time `json:"expireTime" gorm:"type:timestamp not null;default:'2018-01-01 00:00:00'"`
Filename string `json:"filename" gorm:"type:varchar(255) not null"`
Privacy bool `json:"privacy" gorm:"type:tinyint(1) not null;default:0"`
Size int64 `json:"size" gorm:"type:bigint(20) not null;default:0"`
Ip string `json:"ip" gorm:"type:varchar(128) not null"`
}
func (this *UploadToken) TableName() string {