refactor(log): remove legacy log deletion endpoint and associated types

This commit is contained in:
CaIon
2026-06-22 19:40:04 +08:00
parent f84b7d591f
commit f8cfbfa4df
4 changed files with 6 additions and 14 deletions
+4
View File
@@ -150,6 +150,10 @@ func GetLogsSelfStat(c *gin.Context) {
return
}
// DeleteHistoryLogs is the legacy synchronous log cleanup endpoint (DELETE /api/log/).
// It deletes directly instead of going through the async system task. It is kept only
// for the classic frontend; the default frontend uses POST /api/system-task/log-cleanup.
// TODO: remove this handler (and its route) once the classic frontend is removed.
func DeleteHistoryLogs(c *gin.Context) {
targetTimestamp, _ := strconv.ParseInt(c.Query("target_timestamp"), 10, 64)
if targetTimestamp == 0 {