fix (helper): fix goTypeWithPackage enum case
This commit is contained in:
parent
19fd9d7959
commit
ee845f3ed6
@ -170,7 +170,7 @@ func isFieldRepeated(f *descriptor.FieldDescriptorProto) bool {
|
||||
|
||||
func goTypeWithPackage(f *descriptor.FieldDescriptorProto) string {
|
||||
pkg := ""
|
||||
if *f.Type == descriptor.FieldDescriptorProto_TYPE_MESSAGE {
|
||||
if *f.Type == descriptor.FieldDescriptorProto_TYPE_MESSAGE || *f.Type == descriptor.FieldDescriptorProto_TYPE_ENUM {
|
||||
pkg = getPackageTypeName(*f.TypeName)
|
||||
}
|
||||
return goType(pkg, f)
|
||||
|
Loading…
Reference in New Issue
Block a user