This commit is contained in:
2026-07-18 10:52:32 +08:00
parent 2dcafae465
commit b5ef58f434
61 changed files with 1274 additions and 2142 deletions

View File

@@ -100,6 +100,8 @@ func SetupRouter() *gin.Engine {
protected.GET("/auth/profile", authCtrl.GetProfile)
protected.GET("/auth/permissions", permCtrl.GetUserPermissions)
protected.PUT("/auth/password", authCtrl.ChangePassword)
protected.POST("/auth/logout", authCtrl.Logout)
protected.GET("/auth/sessions", authCtrl.GetSessions)
protected.GET("/user/storage-info", assignCtrl.GetMyStorageInfo)
// 文件管理
@@ -252,6 +254,10 @@ func SetupRouter() *gin.Engine {
admin.GET("/backup/logs", backupCtrl.ListLogs)
admin.GET("/backup/backups", backupCtrl.ListBackups)
admin.POST("/backup/restore/:logId", backupCtrl.Restore)
// 授权管理
admin.GET("/license", adminCtrl.GetLicense)
admin.POST("/license/generate", adminCtrl.GenerateLicense)
}
// ============ 分享公开访问 (无需登录) ============