def list(self, request, *args, **kwargs):
    queryset = self.filter_queryset(self.get_queryset())
    page = self.paginate_queryset(queryset)
    if (page is not None):
        serializer = self.get_serializer(page, many=True, request=request)
        return self.get_paginated_response(serializer.data)
    serializer = self.get_serializer(queryset, many=True, request=request)
    return SuccessResponse(data=serializer.data, msg='获取成功')
def list(self, request, *args, **kwargs):
    queryset = self.filter_queryset(self.get_queryset())
    page = self.paginate_queryset(queryset)
    if (page is not None):
        serializer = self.get_serializer(page, many=True, request=request)
        return self.get_paginated_response(serializer.data)
    serializer = self.get_serializer(queryset, many=True, request=request)
    return SuccessResponse(data=serializer.data, msg='获取成功')