feat: 更新备份导出功能,调整文件路径和清除告警表字段缺失

This commit is contained in:
TsMask
2025-05-12 16:47:38 +08:00
parent fe10d908c3
commit 8aa7174d37
11 changed files with 52 additions and 40 deletions

View File

@@ -68,7 +68,7 @@ func (s BackupController) FTPPush(c *gin.Context) {
var body struct {
Path string `form:"path" binding:"required"` // 路径必须是 BACKUP_DIR 开头的路径
Filename string `form:"fileName" binding:"required"`
Tag string `form:"tag" binding:"required"` // 标签,用于区分不同的备份文件
Tag string `form:"tag"` // 标签,用于区分不同的备份文件
}
if err := c.ShouldBindBodyWithJSON(&body); err != nil {
errMsgs := fmt.Sprintf("bind err: %s", resp.FormatBindError(err))