feat: 新增统一文件模块,统一文件操作

This commit is contained in:
meilin.huang
2024-10-21 22:27:42 +08:00
parent 6343173cf8
commit ea3c70a8a8
71 changed files with 1642 additions and 1216 deletions

View File

@@ -0,0 +1,16 @@
package entity
import "mayfly-go/pkg/model"
type File struct {
model.Model
FileKey string `json:"fikeKey"` // 文件key
Filename string `json:"filename"` // 文件名
Path string `json:"path" ` // 文件路径
Size int64 `json:"size"`
}
func (a *File) TableName() string {
return "t_sys_file"
}