feat: Admin 设置页 SQLite 一键备份与下载

复用 BackupService,表单导出后安全下载备份文件。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-30 01:30:16 +08:00
parent 4f93397ef3
commit c8533b6184
7 changed files with 51 additions and 2 deletions

View File

@@ -109,6 +109,7 @@ func Setup(cfg *config.Config) (*gin.Engine, error) {
Report: reportSvc,
Captcha: captchaSvc,
Notify: notifySvc,
Backup: backupSvc,
}, authMW)
r.GET("/media/thumb/*filepath", h.ServeImageThumb)