Comments (2)
@bigfish3000 一个Model对象只代表一行数据,你可以通过接口获得或者修改它的内容(本地的),model源文件不应被修改,相关数据库操作由Mapper对象或者DbClient对象完成,至于业务相关的逻辑,应该由专门的业务类实现,继承不是个好主意,毕竟耦合比较深,我认为组合更好,用model对象构造你的业务类对象并被后者持有。
你说的数据操作模型,我不太清楚指什么,如果是业务无关的通用接口,可以整合到model或者Mapper里的,你可以提Issue,由Drogon来实现。
from drogon.
不错,不错,我继续研究。。。文档,文档。。。
from drogon.
Related Issues (20)
- cmake compile with -fPIC error?
- where to find config.h HOT 1
- drogon hides the system sigint signal handler function? HOT 1
- drogon transform header to lower case?
- 从curl换到drogon post请求出bug? HOT 2
- Expose more ways to obtain information about requests
- WebSockets not forwarded HOT 2
- How would I serve up a directory listing? HOT 1
- Use async callbacks for custom error handler
- 我有一个反向代理服务, 今天打开了"drogon::plugin::Hodor" 这个插件, 似乎这个插件不工作
- jsonc support HOT 4
- `drogon::app().forward(...)` does not perform URL escaping
- registerPostHandlingAdvice on OPTION request HOT 5
- 内存泄漏
- forward cant works HOT 1
- Hodor plugin add exempt IPs HOT 1
- gcc 14.1 HOT 1
- Let drogon_ctl generate systemd unit file
- drogon_ctl create model treats charvar[] (arrays) as std::string. HOT 2
- Provide capability to serve files without extension HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drogon.