Commit 74970b3b authored by 王浩's avatar 王浩

Merge branch 'haow/dev' into 'test'

add topic relate pictorial info

See merge request !137
parents a7314679 cda00a06
......@@ -4,7 +4,7 @@
# Date: 2018/11/15
import json
from utils.base import APIView
from utils.base import APIView, get_offset_count
from utils.logger import error_logger
......@@ -197,3 +197,16 @@ class TopicListBatchUpdate(APIView):
return {
"message": "更新成功"
}
class TopicRelatePictorialInfo(APIView):
def get(self, request):
id_ = request.POST.get('id', '')
offset, count = get_offset_count(request)
try:
data = self.rpc['venus/sun/topic/relate_pictorial_info'](id_=id_, offset=offset, count=count).unwrap()
except Exception as e:
error_logger.error(u'获取帖子画报列表失败%s', e)
raise
return {'data': data}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment