예제 #1
0
 /**
  * 活动详细页
  *
  * @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);
 }
예제 #2
0
 /**
  * 评论点赞
  *
  * @return
  */
 @RequestMapping(value = "mobile/activity/likeatvcmt")
 public @ResponseBody String likeAtvCmt(String phone, String id) {
   return atvCmtServiceImpl.likeAtvCmt(phone, id);
 }
예제 #3
0
 /**
  * 创建评论
  *
  * @return
  */
 @RequestMapping(value = "mobile/activity/createatvcmt")
 public @ResponseBody String createAtvCmt(String phone, AtvCmt atvCmt) {
   return atvCmtServiceImpl.addAtvCmt(phone, atvCmt);
 }