修改部门管理

This commit is contained in:
xie7654
2025-06-30 17:33:47 +08:00
parent f6e68e37c8
commit bfe190ef74
9 changed files with 260 additions and 38 deletions

View File

@@ -10,6 +10,7 @@ from django.core.paginator import InvalidPage
class CustomPagination(PageNumberPagination):
page_size = 20
page_query_param = 'page' # 默认就是'page',如果你用别的名字要改成对应的
page_size_query_param = "pageSize"
max_page_size = 999
django_paginator_class = DjangoPaginator