mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-04 00:10:25 +08:00
feat: 新增统一文件模块,统一文件操作
This commit is contained in:
16
server/internal/file/domain/entity/file.go
Normal file
16
server/internal/file/domain/entity/file.go
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user