-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
JSON转模型 提供模型更新接口 #814
Comments
Update? 这个你得手动处理吧.
|
// 1.Define a JSONString // 2.JSONString -> User // 3.jsonString中的age变成21 // 4.更新user对象 能否提供一个updateFromJson的接口 我们项目中,有许多需要模型更新,目前做法都是手动更新,希望MJ大神能帮小老弟一下! |
如果不涉及到本地存储, 那么你直接更新模型即可, 为什么需要 Update API? 不涉及本地存储,自己手动更新,要写很多代码,要把字典所有的key对应的value全部更新到模型上去呀?如果这些代码能MJ写,项目中代码就会简洁不少,如果自己手写那么重复的代码,就不好嘛 目前俺更新就是手动更新,有点代码冗余 handyjson也提供了update接口,希望mj也能提供一个 |
阅读源码发现MJ做了更新功能 |
能否提供一个更新模型的update的接口?
The text was updated successfully, but these errors were encountered: