feat: attachments manage function is ready

This commit is contained in:
RockYang
2024-01-15 18:48:01 +08:00
parent 9f57fb1421
commit 39fdfae541
30 changed files with 336 additions and 9 deletions

View File

@@ -5,6 +5,7 @@ import "time"
type File struct {
Id uint `gorm:"primarykey;column:id"`
UserId uint
Name string
URL string
Ext string
Size int64

View File

@@ -3,6 +3,7 @@ package vo
type File struct {
Id uint
UserId uint `json:"user_id"`
Name string `json:"name"`
URL string `json:"url"`
Ext string `json:"ext"`
Size int64 `json:"size"`