Commit 608be81a authored by 杨成林's avatar 杨成林

Merge branch 'ycl/survey' into 'dev'

分页

See merge request alpha/sun!356
parents 8abba4d7 1ae7c00f
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