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
目前的 model 是自动生成的, 生成之后,如果有代码变动的情况下
为了不破坏原有的结构
目前我这边是写的新的一几个东西, 不知道,这些,做者是怎么考量的。
The text was updated successfully, but these errors were encountered:
@bigfish3000 一个Model对象只代表一行数据,你可以通过接口获得或者修改它的内容(本地的),model源文件不应被修改,相关数据库操作由Mapper对象或者DbClient对象完成,至于业务相关的逻辑,应该由专门的业务类实现,继承不是个好主意,毕竟耦合比较深,我认为组合更好,用model对象构造你的业务类对象并被后者持有。 你说的数据操作模型,我不太清楚指什么,如果是业务无关的通用接口,可以整合到model或者Mapper里的,你可以提Issue,由Drogon来实现。
Sorry, something went wrong.
不错,不错,我继续研究。。。文档,文档。。。
No branches or pull requests
目前的 model 是自动生成的, 生成之后,如果有代码变动的情况下
为了不破坏原有的结构
目前我这边是写的新的一几个东西, 不知道,这些,做者是怎么考量的。
The text was updated successfully, but these errors were encountered: