Commit 1ae7c00f authored by yangchenglin's avatar yangchenglin

分页

parent b9dbd592
from utils.base import APIView
from utils.base import APIView, get_offset_count
class SurveyListView(APIView):
def get(self, request):
data = self.rpc['venus/sun/survey/list']().unwrap()
offset, count = get_offset_count(request)
data = self.rpc['venus/sun/survey/list'](offset=offset, count=count).unwrap()
return 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