This commit is contained in:
谢小军
2019-08-03 01:34:08 +08:00
parent 3e41ef9304
commit d467d817cf
9 changed files with 73 additions and 73 deletions

View File

@@ -1,11 +1,11 @@
package gtools
const (
_tag_gorm = "gorm"
_tag_json = "json"
_tagGorm = "gorm"
_tagJSON = "json"
)
//精确匹配类型
//TypeDicMp 精确匹配类型
var TypeDicMp = map[string]string{
"int": "int",
"bigint": "int64",
@@ -19,7 +19,7 @@ var TypeDicMp = map[string]string{
"timestamp": "time.Time",
}
//模糊匹配类型
//TypeMatchMp 模糊匹配类型
var TypeMatchMp = map[string]string{
`int[(]\d+[)]`: "int",
`bigint[(]\d+[)]`: "int64",