perf: 各模块分页模型page_num和page_size增加默认值
This commit is contained in:
@@ -61,8 +61,8 @@ class OperLogPageQueryModel(OperLogQueryModel):
|
||||
"""
|
||||
操作日志管理分页查询模型
|
||||
"""
|
||||
page_num: int
|
||||
page_size: int
|
||||
page_num: int = 1
|
||||
page_size: int = 10
|
||||
|
||||
|
||||
class DeleteOperLogModel(BaseModel):
|
||||
@@ -89,8 +89,8 @@ class LoginLogPageQueryModel(LoginLogQueryModel):
|
||||
"""
|
||||
登录日志管理分页查询模型
|
||||
"""
|
||||
page_num: int
|
||||
page_size: int
|
||||
page_num: int = 1
|
||||
page_size: int = 10
|
||||
|
||||
|
||||
class DeleteLoginLogModel(BaseModel):
|
||||
|
Reference in New Issue
Block a user