[TOC]
数据库表
Controller
发布帖子
1 | public String addDiscussPost(String title, String content) { |
帖子详情
1 | @RequestMapping(path = "/detail/{discussPostId}", method = RequestMethod.GET) |
添加评论
1 | comment.setUserId(hostHolder.getUser().getId()); |
[TOC]
发布帖子
1 | public String addDiscussPost(String title, String content) { |
帖子详情
1 | @RequestMapping(path = "/detail/{discussPostId}", method = RequestMethod.GET) |
添加评论
1 | comment.setUserId(hostHolder.getUser().getId()); |