TODO 各种格式

This commit is contained in:
eson
2023-07-06 19:47:27 +08:00
parent 3b462edc89
commit 70fd711fa5
3 changed files with 25 additions and 14 deletions

View File

@@ -2,18 +2,15 @@ package check
import (
"errors"
"fusenapi/utils/format"
"regexp"
"strings"
"unicode/utf8"
)
var category = map[string]bool{
"personalization": true,
}
// CheckCategory 检查是否存在该类型
func CheckCategory(key string) bool {
_, ok := category[key]
_, ok := format.CategoryMap[key]
return ok
}