feat: improve log delete api

This commit is contained in:
wzxjohn
2025-04-10 22:52:17 +08:00
parent 62da481dc6
commit 2bd2d73d33
2 changed files with 23 additions and 4 deletions

View File

@@ -196,7 +196,7 @@ func DeleteHistoryLogs(c *gin.Context) {
})
return
}
count, err := model.DeleteOldLog(targetTimestamp)
count, err := model.DeleteOldLog(c.Request.Context(), targetTimestamp, 100)
if err != nil {
c.JSON(http.StatusOK, gin.H{
"success": false,