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