feat: file upload and remove

This commit is contained in:
zchengo
2023-01-30 15:48:42 +08:00
parent a0d9f3ceb4
commit 3902d51d11
7 changed files with 111 additions and 14 deletions
+19 -7
View File
@@ -8,11 +8,23 @@ type Page struct {
// 发送邮件参数模型
type MailParam struct {
Smtp string
Port int
AuthCode string
Sender string
Subject string
Content string
Receiver string
Smtp string
Port int
AuthCode string
Sender string
Subject string
Content string
Attachment string
Receiver string
}
// 文件参数模型
type FileParam struct {
Name string `json:"name" binding:"required,gt=0"`
}
// 文件信息
type FileInfo struct {
Url string `json:"url"`
Name string `json:"name"`
}