
from rest_framework.pagination import PageNumberPagination

class StandardPagination(PageNumberPagination):
    
    # 默认每页显示的数据条数
    page_size = 3
    # 获取URL参数中设置的每页显示数据条数
    page_size_query_param = 'page_size'

    # 获取URL参数中传入的页码key
    page_query_param = 'page'

    # 最大支持的每页显示的数据条数
    max_page_size = 100

b9c180dab5f0d0f0e373e44d70ab4fd74957a48a
<mask token>

<mask token>


class StandardPagination(PageNumberPagination):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class StandardPagination(PageNumberPagination):
    page_size = 3
    page_size_query_param = 'page_size'
    page_query_param = 'page'
    max_page_size = 100

from rest_framework.pagination import PageNumberPagination


class StandardPagination(PageNumberPagination):
    page_size = 3
    page_size_query_param = 'page_size'
    page_query_param = 'page'
    max_page_size = 100


from rest_framework.pagination import PageNumberPagination

class StandardPagination(PageNumberPagination):
    
    # 默认每页显示的数据条数
    page_size = 3
    # 获取URL参数中设置的每页显示数据条数
    page_size_query_param = 'page_size'

    # 获取URL参数中传入的页码key
    page_query_param = 'page'

    # 最大支持的每页显示的数据条数
    max_page_size = 100
