优化页面、修复BUG

This commit is contained in:
李琦
2026-06-24 17:06:22 +08:00
parent 3f653bc336
commit d5ff40e4d3
38 changed files with 1507 additions and 354 deletions

View File

@@ -133,6 +133,22 @@ func GetOperationAction(path, method string) string {
}
}
// 代码类型管理
if strings.Contains(pathLower, "/api/admin/code-types") {
if methodUpper == "GET" {
return "查看代码类型列表"
}
if methodUpper == "POST" {
return "创建代码类型"
}
if methodUpper == "PUT" {
return "更新代码类型"
}
if methodUpper == "DELETE" {
return "删除代码类型"
}
}
// 代码片段管理
if strings.Contains(pathLower, "/api/admin/snippets") {
if methodUpper == "GET" {