Commit aa2947f2 authored by Davve's avatar Davve

修改命名

parent 10cccb42
...@@ -12,7 +12,7 @@ class GroupListView(APIView): ...@@ -12,7 +12,7 @@ class GroupListView(APIView):
limit = request.GET.get('limit', 10) limit = request.GET.get('limit', 10)
filter = self.handle_filter(request.GET.get('filter', "")) filter = self.handle_filter(request.GET.get('filter', ""))
try: try:
data = self.rpc['venus/community/pick/get'](offset=page, limit=limit, filters=filter).unwrap() data = self.rpc['venus/community/group/get'](offset=page, limit=limit, filters=filter).unwrap()
except Exception as e: except Exception as e:
# raise e # raise e
data = { data = {
......
...@@ -12,7 +12,7 @@ class StarListView(APIView): ...@@ -12,7 +12,7 @@ class StarListView(APIView):
limit = request.GET.get('limit', 10) limit = request.GET.get('limit', 10)
filter = self.handle_filter(request.GET.get('filter', "")) filter = self.handle_filter(request.GET.get('filter', ""))
try: try:
data = self.rpc['venus/community/push/get'](offset=page, limit=limit, filters=filter).unwrap() data = self.rpc['venus/community/star/get'](offset=page, limit=limit, filters=filter).unwrap()
except Exception as e: except Exception as e:
data = { data = {
'total': 200, 'total': 200,
......
...@@ -12,7 +12,7 @@ class TopicListView(APIView): ...@@ -12,7 +12,7 @@ class TopicListView(APIView):
limit = request.GET.get('limit', 10) limit = request.GET.get('limit', 10)
filter = self.handle_filter(request.GET.get('filter', "")) filter = self.handle_filter(request.GET.get('filter', ""))
try: try:
data = self.rpc['venus/community/pick/get'](offset=page, limit=limit, filters=filter).unwrap() data = self.rpc['venus/community/topic/get'](offset=page, limit=limit, filters=filter).unwrap()
except Exception as e: except Exception as e:
# raise e # raise e
data = { data = {
......
...@@ -12,7 +12,7 @@ class UserListView(APIView): ...@@ -12,7 +12,7 @@ class UserListView(APIView):
limit = request.GET.get('limit', 10) limit = request.GET.get('limit', 10)
filter = self.handle_filter(request.GET.get('filter', "")) filter = self.handle_filter(request.GET.get('filter', ""))
try: try:
data = self.rpc['venus/community/push/get'](offset=page, limit=limit, filters=filter).unwrap() data = self.rpc['venus/community/user/get'](offset=page, limit=limit, filters=filter).unwrap()
except Exception as e: except Exception as e:
data = { data = {
'total': 200, 'total': 200,
......
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