✨ Init
This commit is contained in:
24
model/example/exa_breakpoint_continue.go
Normal file
24
model/example/exa_breakpoint_continue.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package example
|
||||
|
||||
import (
|
||||
"miniapp/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
|
||||
}
|
15
model/example/exa_customer.go
Normal file
15
model/example/exa_customer.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package example
|
||||
|
||||
import (
|
||||
"miniapp/global"
|
||||
"miniapp/model/system"
|
||||
)
|
||||
|
||||
type ExaCustomer struct {
|
||||
global.GVA_MODEL
|
||||
CustomerName string `json:"customerName" form:"customerName" gorm:"comment:客户名"` // 客户名
|
||||
CustomerPhoneData string `json:"customerPhoneData" form:"customerPhoneData" gorm:"comment:客户手机号"` // 客户手机号
|
||||
SysUserID uint `json:"sysUserId" form:"sysUserId" gorm:"comment:管理ID"` // 管理ID
|
||||
SysUserAuthorityID uint `json:"sysUserAuthorityID" form:"sysUserAuthorityID" gorm:"comment:管理角色ID"` // 管理角色ID
|
||||
SysUser system.SysUser `json:"sysUser" form:"sysUser" gorm:"comment:管理详情"` // 管理详情
|
||||
}
|
17
model/example/exa_file_upload_download.go
Normal file
17
model/example/exa_file_upload_download.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package example
|
||||
|
||||
import (
|
||||
"miniapp/global"
|
||||
)
|
||||
|
||||
type ExaFileUploadAndDownload struct {
|
||||
global.GVA_MODEL
|
||||
Name string `json:"name" gorm:"comment:文件名"` // 文件名
|
||||
Url string `json:"url" gorm:"comment:文件地址"` // 文件地址
|
||||
Tag string `json:"tag" gorm:"comment:文件标签"` // 文件标签
|
||||
Key string `json:"key" gorm:"comment:编号"` // 编号
|
||||
}
|
||||
|
||||
func (ExaFileUploadAndDownload) TableName() string {
|
||||
return "exa_file_upload_and_downloads"
|
||||
}
|
11
model/example/response/exa_breakpoint_continue.go
Normal file
11
model/example/response/exa_breakpoint_continue.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package response
|
||||
|
||||
import "miniapp/model/example"
|
||||
|
||||
type FilePathResponse struct {
|
||||
FilePath string `json:"filePath"`
|
||||
}
|
||||
|
||||
type FileResponse struct {
|
||||
File example.ExaFile `json:"file"`
|
||||
}
|
7
model/example/response/exa_customer.go
Normal file
7
model/example/response/exa_customer.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package response
|
||||
|
||||
import "miniapp/model/example"
|
||||
|
||||
type ExaCustomerResponse struct {
|
||||
Customer example.ExaCustomer `json:"customer"`
|
||||
}
|
7
model/example/response/exa_file_upload_download.go
Normal file
7
model/example/response/exa_file_upload_download.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package response
|
||||
|
||||
import "miniapp/model/example"
|
||||
|
||||
type ExaFileResponse struct {
|
||||
File example.ExaFileUploadAndDownload `json:"file"`
|
||||
}
|
Reference in New Issue
Block a user