Commit 23e339f3 authored by 杨成林's avatar 杨成林

Merge branch 'ycl/fix' into 'test'

tag榜单

See merge request !381
parents 11f4a480 b18762d5
......@@ -260,6 +260,19 @@ class SearchDefaultKeyword(APIView):
return data
class TagRelatePictorialInfo(APIView):
def get(self, request):
id_ = request.GET.get('id')
offset, count = get_offset_count(request)
try:
data = self.rpc['venus/sun/tag/relate_pictorial_info'](id_=id_, offset=offset, count=count).unwrap()
except Exception as e:
error_logger.error(u'获取画报列表失败%s', e)
raise
return {'data': data}
class TagSetListView(APIView):
def get(self, request):
......
......@@ -108,6 +108,7 @@ urlpatterns = [
url(r'^tag/filter/delete$', TagFilterDelete.as_view()),
url(r'^tag/search_recommend_keyword$', TagSearchRecommendKeyword.as_view()),
url(r'^tag/search_default_keyword$', SearchDefaultKeyword.as_view()),
url(r'^tag/related_pictorial_info$', TagRelatePictorialInfo.as_view()),
# 标签类型相关
url(r'^tag/tagtype/list$', TagTypeListView.as_view()),
......
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