我应该设计一个类似于 stack over flow 的问答网站,以下是我想要在我的系统中使用的功能,
Users
-Non-member
-Sign-up
-View questions and answers
-Search for questions
-Member (inherits above above features (except for sign-up) and the ones below)
-Login
-View question
-Ask question
-Answer question
-Edit own question
-Edit other user's questions (needs reputation)
-Delete question
-Vote on question (needs reputation)
-Report other user's questions (needs reputation)
-Comment on questions and answers
-Moderator (upgraded from member inherits all the above features and the ones below)
-Remove other questions
-Create tags
-Remove member (needs 4 other moderators' approval)
但我对将这些分隔为Models
,Views
和感到困惑Controllers
。
我尝试使用此模板http://creately.com/diagram/example/gg3qz3ut/MVC但看起来相同。我真的很感谢你们中的任何一位专家就如何将它们分离到 MVC 模型中提供一些想法/示例,因为这是我第一次使用这种架构。Model
Controller
谢谢 :)