feat: update AIConfig route handler and add validation utility function with tests

This commit is contained in:
mlogclub
2026-05-24 19:57:36 +08:00
parent b1bc1580d9
commit 467759d547
4 changed files with 53 additions and 4 deletions
+1 -1
View File
@@ -226,7 +226,7 @@ func registerDashboardAIConfigRoutes(group *gin.RouterGroup) {
group.Any("/list", dashboard.AIConfigAnyList)
group.Any("/list_all", dashboard.AIConfigAnyList_all)
group.POST("/update", dashboard.AIConfigPostUpdate)
group.POST("/update_sort", dashboard.AIConfigPostUpdate_sort)
group.POST("/update_sort", dashboard.AIConfigPostUpdateSort)
group.POST("/update_status", dashboard.AIConfigPostUpdate_status)
}