We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
执行方法Maputil.MapTo,当dst指向的对象内嵌对象为指针时会报错。比如: type MerchantModelMsg struct { Id string json:"_id" InsertTime int64 json:"insert_time" UpdateTime int64 json:"update_time" DeleteTime int64 json:"delete_time" LastVersion int64 json:"last_version" DataVersion int64 json:"data_version" Data *MerchantModelMsg_Data json:"data" //此处会报错,如果为MerchantModelMsg_Data类型则不会。 }
json:"_id"
json:"insert_time"
json:"update_time"
json:"delete_time"
json:"last_version"
json:"data_version"
json:"data"
type MerchantModelMsg_Data struct { CreditCode string json:"credit_code" CreditName string json:"credit_name" }
json:"credit_code"
json:"credit_name"
//grpc生成的代码一般都是指针类型,请大佬修复一下,谢谢
The text was updated successfully, but these errors were encountered:
@az2az ok,下个版本(v2.2.10)会修复。
Sorry, something went wrong.
fix: fix issue #169
3a71a86
v2.3.0版本已修复
No branches or pull requests
执行方法Maputil.MapTo,当dst指向的对象内嵌对象为指针时会报错。比如:
type MerchantModelMsg struct {
Id string
json:"_id"
InsertTime int64
json:"insert_time"
UpdateTime int64
json:"update_time"
DeleteTime int64
json:"delete_time"
LastVersion int64
json:"last_version"
DataVersion int64
json:"data_version"
Data *MerchantModelMsg_Data
json:"data"
//此处会报错,如果为MerchantModelMsg_Data类型则不会。}
type MerchantModelMsg_Data struct {
CreditCode string
json:"credit_code"
CreditName string
json:"credit_name"
}
//grpc生成的代码一般都是指针类型,请大佬修复一下,谢谢
The text was updated successfully, but these errors were encountered: