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.
19 lines
514 B
19 lines
514 B
|
7 years ago
|
package code
|
||
|
8 years ago
|
|
||
|
|
import (
|
||
|
7 years ago
|
"tank/code/config"
|
||
|
8 years ago
|
"time"
|
||
|
|
)
|
||
|
|
|
||
|
|
type DownloadToken struct {
|
||
|
|
Base
|
||
|
7 years ago
|
UserUuid string `json:"userUuid" gorm:"type:char(36) not null"`
|
||
|
|
MatterUuid string `json:"matterUuid" gorm:"type:char(36) not null;index:idx_mu"`
|
||
|
7 years ago
|
ExpireTime time.Time `json:"expireTime" gorm:"type:timestamp not null;default:'2018-01-01 00:00:00'"`
|
||
|
7 years ago
|
Ip string `json:"ip" gorm:"type:varchar(128) not null"`
|
||
|
8 years ago
|
}
|
||
|
|
|
||
|
7 years ago
|
func (this *DownloadToken) TableName() string {
|
||
|
7 years ago
|
return config.TABLE_PREFIX + "download_token"
|
||
|
8 years ago
|
}
|