perf: 各模块分页模型page_num和page_size增加默认值

This commit is contained in:
insistence
2024-01-26 11:06:30 +08:00
parent 9825155fc2
commit 7e777c624d
5 changed files with 16 additions and 16 deletions

View File

@@ -83,8 +83,8 @@ class RolePageQueryModel(RoleQueryModel):
"""
角色管理分页查询模型
"""
page_num: int
page_size: int
page_num: int = 1
page_size: int = 10
class RoleMenuQueryModel(BaseModel):