切换批次和文件的 ID 类型为 UUID,更新相关逻辑和文档
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
type FileBatch struct {
|
||||
ID uint `gorm:"primaryKey" json:"id"`
|
||||
ID string `gorm:"primaryKey;type:varchar(36)" json:"id"`
|
||||
PickupCode string `gorm:"uniqueIndex;not null" json:"pickup_code"`
|
||||
Remark string `json:"remark"`
|
||||
ExpireType string `json:"expire_type"` // time / download / permanent
|
||||
|
||||
Reference in New Issue
Block a user