Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 /**
  * 评论点赞
  *
  * @return
  */
 @RequestMapping(value = "mobile/activity/likeatvcmt")
 public @ResponseBody String likeAtvCmt(String phone, String id) {
   return atvCmtServiceImpl.likeAtvCmt(phone, id);
 }
Ejemplo n.º 3
0
 /**
  * 创建评论
  *
  * @return
  */
 @RequestMapping(value = "mobile/activity/createatvcmt")
 public @ResponseBody String createAtvCmt(String phone, AtvCmt atvCmt) {
   return atvCmtServiceImpl.addAtvCmt(phone, atvCmt);
 }