return comments/thumbup/thumbups for api flyimg_detail_api

Brightcells 8 年之前
父節點
當前提交
4c6dbc149d
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      group/views.py

+ 4 - 1
group/views.py

@@ -289,7 +289,10 @@ def flyimg_detail_api(request):
289 289
         return response(GroupPhotoStatusCode.GROUP_PHOTO_NOT_FOUND)
290 290
 
291 291
     return response(200, 'Flyimg Detail Success', u'飞图详情成功', {
292
-        'photo_info': group_photo.photo_info(user_id)
292
+        'photo_info': group_photo.photo_info(user_id),
293
+        'comments': get_group_photo_comment_list(photo_id),
294
+        'thumbup': get_group_photo_thumbup_flag(photo_id, user_id),  # user_id 是否点赞 photo_id
295
+        'thumbups': get_group_photo_thumbup_list(photo_id),  # 群组照片点赞列表
293 296
     })
294 297
 
295 298