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

@@ -3,7 +3,8 @@ package entity
import (
"encoding/json"
"mayfly-go/pkg/model"
"mayfly-go/pkg/utils/conv"
"github.com/may-fly/cast"
)
const (
@@ -49,7 +50,7 @@ func (c *Config) IntValue(defaultValue int) int {
if c.Id == 0 {
return defaultValue
}
return conv.Str2Int(c.Value, defaultValue)
return cast.ToIntD(c.Value, defaultValue)
}
// 转换配置中的值为bool类型默认"1"或"true"为true其他为false