UML类图:论坛
2022-04-03 18:44:22 20 举报
UML类图:论坛
作者其他创作
大纲/内容
HomeController
-DiscussPostService :discussPostService-UserService:userService
+String getIndexPage(Page page)
DiscussPostService
-DiscussPostMapper:discussPostMapper
DiscussPostMapper
Page
-int:curent-int:limit-int:rows-String:path
+ int getCurrent()+ void setCurrent(int current)+ int getLimit()+ int getRows()+ void setRows(int rows)+ String getPath()+ void setPath(String path)+ int getOffset()+ int getTotal()+ int getFrom()+ int getTo()
UserService
- UserMapper: userMapper- MailClient: mailClient- LoginTicketMapper loginTicketMapper- HostHolder: hostHolder
userMapper.xml
<select id=\"selectById\" resultType=\"User\"><select id=\"selectByName\" resultType=\"User\"><select id=\"selectByEmail\" resultType=\"User\"><insert id=\"insertUser\" parameterType=\"User\" keyProperty=\"id\"><update id=\"updateStatus\"><update id=\"updateHeader\"><update id=\"updatePassword\">
User
- int id;- String username;- String password;- String salt;- String email;- int type;- int status;- String activationCode;- String headerUrl;- Date createTime;
+ get/set方法+ String toString()
UserMapper
discussPostMapper.xml
<select id=\"selectDiscussPosts\" resultType=\"DiscussPost\"><select id=\"selectDiscussPostRows\" resultType=\"int\"><insert id=\"insertDiscussPost\" parameterType=\"DiscussPost\" keyProperty=\"id\"><select id=\"selectDiscussPostById\" resultType=\"DiscussPost\">
0 条评论
下一页