From 246a6639a4b6185c89434688ad8dd229ece1debd Mon Sep 17 00:00:00 2001 From: bobohume <754266963@qq.com> Date: Mon, 26 Sep 2022 14:09:24 +0800 Subject: [PATCH] Update type.go --- orm/type.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orm/type.go b/orm/type.go index 739b437c..44a4aa9d 100644 --- a/orm/type.go +++ b/orm/type.go @@ -9,10 +9,10 @@ func getSliceTypeString(paramType reflect.Type) string { switch sTypeName { case "bool", "float64", "float32", "int8", "uint8", "int16", "uint16", "int32", "uint32", "int64", "uint64", "string", "int", "uint": - return "[*]" + sTypeName + return "[]" + sTypeName } - return "[*]struct" + return "[]struct" } func getArrayTypeString(paramType reflect.Type) string {