我为我的结构中的“数据存取”建立了一项技术服务:
POST http://example.com/data/User
GET|PUT|DELETE http://example.com/data/User/{UserId}
然而,对于商业界(BLL)而言,使用了第二个非致命性服务:
POST http://example.com/accountapi/register
POST http://example.com/accountapi/login
该图书馆不是向巴勒斯坦民族权力机构打电话,而是直接与数据库会谈。
你们如何改进这一结构?
- Should the BLL service call the DAL service ?
- Should I drop the DAL service and only expose the BLL service ?
- Should I, somehow, inject business logic on my RESTful DAL service ? If yes, how ?