refactor: dbms与标签管理优化

This commit is contained in:
meilin.huang
2024-03-21 17:15:52 +08:00
parent b13d27ccd6
commit b2cfd1517c
43 changed files with 536 additions and 564 deletions

View File

@@ -1,8 +1,6 @@
package rdm
import (
"mayfly-go/pkg/utils/anyx"
)
import "github.com/may-fly/cast"
// write cmd
var writeCmd = map[string]string{
@@ -95,6 +93,6 @@ var writeCmd = map[string]string{
// 判断命令是否写命令
func IsWriteCmd(cmd any) bool {
_, ok := writeCmd[anyx.ConvString(cmd)]
_, ok := writeCmd[cast.ToString(cmd)]
return ok
}