🎨 移除多余模块
This commit is contained in:
16
server/model/common/exa_attachment_category.go
Normal file
16
server/model/common/exa_attachment_category.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"github.com/flipped-aurora/gin-vue-admin/server/global"
|
||||
)
|
||||
|
||||
type ExaAttachmentCategory struct {
|
||||
global.GVA_MODEL
|
||||
Name string `json:"name" form:"name" gorm:"default:null;type:varchar(255);column:name;comment:分类名称;"`
|
||||
Pid uint `json:"pid" form:"pid" gorm:"default:0;type:int;column:pid;comment:父节点ID;"`
|
||||
Children []*ExaAttachmentCategory `json:"children" gorm:"-"`
|
||||
}
|
||||
|
||||
func (ExaAttachmentCategory) TableName() string {
|
||||
return "exa_attachment_category"
|
||||
}
|
||||
24
server/model/common/exa_breakpoint_continue.go
Normal file
24
server/model/common/exa_breakpoint_continue.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"github.com/flipped-aurora/gin-vue-admin/server/global"
|
||||
)
|
||||
|
||||
// file struct, 文件结构体
|
||||
type ExaFile struct {
|
||||
global.GVA_MODEL
|
||||
FileName string
|
||||
FileMd5 string
|
||||
FilePath string
|
||||
ExaFileChunk []ExaFileChunk
|
||||
ChunkTotal int
|
||||
IsFinish bool
|
||||
}
|
||||
|
||||
// file chunk struct, 切片结构体
|
||||
type ExaFileChunk struct {
|
||||
global.GVA_MODEL
|
||||
ExaFileID uint
|
||||
FileChunkNumber int
|
||||
FileChunkPath string
|
||||
}
|
||||
18
server/model/common/exa_file_upload_download.go
Normal file
18
server/model/common/exa_file_upload_download.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"github.com/flipped-aurora/gin-vue-admin/server/global"
|
||||
)
|
||||
|
||||
type ExaFileUploadAndDownload struct {
|
||||
global.GVA_MODEL
|
||||
Name string `json:"name" form:"name" gorm:"column:name;comment:文件名"` // 文件名
|
||||
ClassId int `json:"classId" form:"classId" gorm:"default:0;type:int;column:class_id;comment:分类id;"` // 分类id
|
||||
Url string `json:"url" form:"url" gorm:"column:url;comment:文件地址"` // 文件地址
|
||||
Tag string `json:"tag" form:"tag" gorm:"column:tag;comment:文件标签"` // 文件标签
|
||||
Key string `json:"key" form:"key" gorm:"column:key;comment:编号"` // 编号
|
||||
}
|
||||
|
||||
func (ExaFileUploadAndDownload) TableName() string {
|
||||
return "exa_file_upload_and_downloads"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package request
|
||||
|
||||
type ExaAttachmentCategorySearch struct {
|
||||
ClassId int `json:"classId" form:"classId"`
|
||||
PageInfo
|
||||
}
|
||||
11
server/model/common/response/exa_breakpoint_continue.go
Normal file
11
server/model/common/response/exa_breakpoint_continue.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package response
|
||||
|
||||
import "github.com/flipped-aurora/gin-vue-admin/server/model/common"
|
||||
|
||||
type FilePathResponse struct {
|
||||
FilePath string `json:"filePath"`
|
||||
}
|
||||
|
||||
type FileResponse struct {
|
||||
File common.ExaFile `json:"file"`
|
||||
}
|
||||
7
server/model/common/response/exa_file_upload_download.go
Normal file
7
server/model/common/response/exa_file_upload_download.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package response
|
||||
|
||||
import "github.com/flipped-aurora/gin-vue-admin/server/model/common"
|
||||
|
||||
type ExaFileResponse struct {
|
||||
File common.ExaFileUploadAndDownload `json:"file"`
|
||||
}
|
||||
Reference in New Issue
Block a user