From 0735ca6904d36de33a1a7c8d3c2732afa778be7d Mon Sep 17 00:00:00 2001 From: a7458969 <290198252@qq.com> Date: Fri, 1 May 2020 21:21:04 +0800 Subject: [PATCH] no message --- model/port.go | 2 +- utils/jsonbuilder.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/model/port.go b/model/port.go index 31a68df..b209e5d 100644 --- a/model/port.go +++ b/model/port.go @@ -21,7 +21,7 @@ func MysqlToElasticSearchMapping(types string,Key string) string{ return "keyword" } if(strings.Contains(types,"int(")){ - return "interger" + return "integer" } if(strings.Contains(types,"longblob")){ return "text" diff --git a/utils/jsonbuilder.go b/utils/jsonbuilder.go index be152f7..e2eecd4 100644 --- a/utils/jsonbuilder.go +++ b/utils/jsonbuilder.go @@ -24,4 +24,5 @@ func (*JsonObject)InsertArrary(key string,arr interface{}) error { if reflect.TypeOf(arr).Kind() != reflect.Array{ return errors.New("wrong parameter") } + return nil } \ No newline at end of file