Commit 969193c8 authored by zhanglu's avatar zhanglu

Merge branch 'feature/op_topic' into 'dev'

帖子图片列表

See merge request !107
parents d9b66e99 ad7d06d1
...@@ -49,7 +49,7 @@ class TopicImageListView(APIView): ...@@ -49,7 +49,7 @@ class TopicImageListView(APIView):
page = int(request.GET.get('page', 1)) page = int(request.GET.get('page', 1))
limit = int(request.GET.get('limit', 50)) limit = int(request.GET.get('limit', 50))
filters = json.loads(request.GET.get('filter', "{}")) filters = json.loads(request.GET.get('filter', "{}"))
sorts_by = '2' # request.GET.getlist('sort[]') sorts_by = json.loads(request.GET.get('sort_params', "[3]"))
res = self.rpc['physical/search/business/topic']( res = self.rpc['physical/search/business/topic'](
offset=(page-1) * limit, offset=(page-1) * limit,
......
...@@ -54,6 +54,7 @@ urlpatterns = [ ...@@ -54,6 +54,7 @@ urlpatterns = [
# topic相关 # topic相关
url(r'^topic/list$', TopicListView.as_view()), url(r'^topic/list$', TopicListView.as_view()),
url(r'^topic/img/list$', TopicImageListView.as_view()),
url(r'^topic/detail$', TopicUpdateOrCreateView.as_view()), url(r'^topic/detail$', TopicUpdateOrCreateView.as_view()),
url(r'^topic/create$', TopicUpdateOrCreateView.as_view()), url(r'^topic/create$', TopicUpdateOrCreateView.as_view()),
url(r'^topic/batch_update$', TopicListBatchUpdate.as_view()), url(r'^topic/batch_update$', TopicListBatchUpdate.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