-
Notifications
You must be signed in to change notification settings - Fork 177
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
[3.0] 实现模型字段类型转换的统一接口 #592
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## 3.0 #592 +/- ##
============================================
+ Coverage 12.24% 17.34% +5.10%
- Complexity 2965 2988 +23
============================================
Files 64 64
Lines 7129 7171 +42
============================================
+ Hits 873 1244 +371
+ Misses 6256 5927 -329
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
其实可以 简化下方法名 用get set就行了 |
说是模型的
|
modelReadValue 和 modelWriteValue |
modelGetValue,modelSetValue 这样? PS: 一不小心点错按钮把你回答给编辑一次了😂 |
直接就用get set就行了吧 |
PS:如果你觉得不合适就 close 吧,目前是通过重新 writeTransform、readTransform 能在项目端实现(就是有一点维护成本)。 |
我的意思是 modelReadValue =》 get modelWriteValue => set 这样简化下 |
理解了😂,简化是简化方法名对吧。不怕容易与用户代码产生冲突么? |
冲突可能性不大吧 一般都是setXXX getXXX为主 直接使用get set为方法名的场景不多 |
使模型能友好复用
DTO
对象支持各种场景resolve #587