优化页面、修复BUG
This commit is contained in:
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user