/** * 活动详细页 * * @return */ @RequestMapping(value = "mobile/activity/viewactivity") public @ResponseBody String viewActivity(String id) { Activity activity = activityServiceImpl.queryById(id); List<AtvCmt> comments = atvCmtServiceImpl.qAtvCmtByActivityId(id); JSONObject jsonObject = new JSONObject(); jsonObject.put("activity", activity); jsonObject.put("comments", comments); return ResponseData.getResData(jsonObject); }
/** * 评论点赞 * * @return */ @RequestMapping(value = "mobile/activity/likeatvcmt") public @ResponseBody String likeAtvCmt(String phone, String id) { return atvCmtServiceImpl.likeAtvCmt(phone, id); }
/** * 创建评论 * * @return */ @RequestMapping(value = "mobile/activity/createatvcmt") public @ResponseBody String createAtvCmt(String phone, AtvCmt atvCmt) { return atvCmtServiceImpl.addAtvCmt(phone, atvCmt); }