-
-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
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
无法复制某些字段 #129
Comments
1: 结构体加了copier tag, 可以正常复制, 我有个小疑惑, 复制字段不是通过json这个tag 匹配的吗 |
@ZhangHu1225
|
这里有个问题 A是grpc的结构体(自动生成的) B是gorm的结构体(自动生成的) 当是这样一种情况的时候 而我又不想改生成的代码 就比较尴尬了 |
Wenpiner
added a commit
to Wenpiner/copier
that referenced
this issue
Apr 1, 2024
Custom Tag function The default json is effective in proto [jinzhu#129](jinzhu#129 (comment)), providing a more flexible tagging method. This feature has been thoroughly tested and proven in local environments.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your Question
源:
目标:
结果:
Id没有正确复制进去.
另外如何把time.Time 复制时转换为timestamppb.Timestamp
Expected answer
The text was updated successfully, but these errors were encountered: