perf: 各模块分页模型page_num和page_size增加默认值
This commit is contained in:
@@ -63,8 +63,8 @@ class JobPageQueryModel(JobQueryModel):
|
||||
"""
|
||||
定时任务管理分页查询模型
|
||||
"""
|
||||
page_num: int
|
||||
page_size: int
|
||||
page_num: int = 1
|
||||
page_size: int = 10
|
||||
|
||||
|
||||
class EditJobModel(JobModel):
|
||||
@@ -97,8 +97,8 @@ class JobLogPageQueryModel(JobLogQueryModel):
|
||||
"""
|
||||
定时任务日志管理分页查询模型
|
||||
"""
|
||||
page_num: int
|
||||
page_size: int
|
||||
page_num: int = 1
|
||||
page_size: int = 10
|
||||
|
||||
|
||||
class DeleteJobLogModel(BaseModel):
|
||||
|
Reference in New Issue
Block a user