feat: added delete file function

This commit is contained in:
RockYang
2024-02-19 16:43:03 +08:00
parent 3d159a833e
commit c83ac48bd2
14 changed files with 130 additions and 43 deletions

View File

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

View File

@@ -1,9 +1,10 @@
package vo
type File struct {
Id uint
Id uint `json:"id"`
UserId uint `json:"user_id"`
Name string `json:"name"`
ObjKey string `json:"obj_key"`
URL string `json:"url"`
Ext string `json:"ext"`
Size int64 `json:"size"`