mirror of
https://github.com/wgh136/nysoure.git
synced 2025-12-17 16:11:14 +00:00
feat: Add tag field to file and uploading file models, and update related functions
This commit is contained in:
@@ -21,6 +21,7 @@ type UploadingFile struct {
|
||||
TempPath string
|
||||
Resource Resource `gorm:"foreignKey:TargetResourceID"`
|
||||
Storage Storage `gorm:"foreignKey:TargetStorageID"`
|
||||
Tag string `gorm:"type:text;default:null"`
|
||||
}
|
||||
|
||||
func (uf *UploadingFile) BlocksCount() int {
|
||||
|
||||
Reference in New Issue
Block a user