提交 8beaccdd 编写于 作者: N ning

refactor: GetTagFilters

上级 af6003da
......@@ -24,6 +24,10 @@ type TagFilter struct {
}
func GetTagFilters(jsonArr ormx.JSONArr) ([]TagFilter, error) {
if jsonArr == nil || len([]byte(jsonArr)) == 0 {
return []TagFilter{}, nil
}
bFilters := make([]TagFilter, 0)
err := json.Unmarshal(jsonArr, &bFilters)
if err != nil {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册