Django_rest_framework uses post method to realize pagination

I saw a paging method on the Internet:

    def get(self, request, format=None):
        -sharp 
        roles = Product.objects.all()
        -sharp 
        pg = PageNumberPagination()
        -sharp 
        page_roles = pg.paginate_queryset(queryset=roles, request=request, view=self)
        -sharp 
        ser = ProductSerializer(instance=page_roles, many=True)
        return Response(ser.data, status=HTTP_200_OK)

but this method only accepts one numeric parameter, and I want to bring user data for permission authentication. Is there any other paging method that can carry both paging information and user information


when request comes, there is user information in request.user

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e59faa-45580.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e59faa-45580.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?