diff --git a/tools/goctl/model/sql/gen/keys_test.go b/tools/goctl/model/sql/gen/keys_test.go index 536eb6f2..58aaa160 100644 --- a/tools/goctl/model/sql/gen/keys_test.go +++ b/tools/goctl/model/sql/gen/keys_test.go @@ -45,10 +45,10 @@ func TestGenCacheKeys(t *testing.T) { AutoIncrement: true, }, UniqueIndex: map[string][]*parser.Field{ - "mobile_unique": []*parser.Field{ + "mobile_unique": { mobileField, }, - "class_name_unique": []*parser.Field{ + "class_name_unique": { classField, nameField, },