Skip to content

Commit

Permalink
fix: entproto json proto 缺省类型
Browse files Browse the repository at this point in the history
  • Loading branch information
TBXark committed Nov 10, 2024
1 parent ab4b4d5 commit 4708e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/ent-gen-proto/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func fixFieldType(fd *gen.Field, timeType string) field.Type {
if _, ok := buildInTypeSlice[fd.Type.RType.Ident]; ok {
return field.TypeJSON
}
return field.TypeJSON
return field.TypeBytes
default:
return field.TypeBytes
}
Expand Down

0 comments on commit 4708e67

Please sign in to comment.