我應該設計問答&類似堆放超過流通A位和下面是我想在我的系統功能,MVC UML類圖設計
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,但Model
和Controller
看起來一樣。我會非常感謝你們的專家給出了一些關於如何將這些分離成MVC模型的想法/例子,因爲這是我第一次使用這種體系結構。
謝謝:)