You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.3 KiB
64 lines
1.3 KiB
1 month ago
|
from pydantic import BaseModel
|
||
|
from typing import Union, Optional, List
|
||
|
#from module_admin.entity.vo.user_vo import NewtestModel
|
||
|
|
||
|
|
||
|
class NewtestModel(BaseModel):
|
||
|
"""
|
||
|
测试表对应pydantic模型
|
||
|
"""
|
||
|
newtest_id: Optional[int]
|
||
|
newtest_code: Optional[str]
|
||
|
newtest_name: Optional[str]
|
||
|
newtest_sort: Optional[str]
|
||
|
status: Optional[str]
|
||
|
create_by: Optional[str]
|
||
|
create_time: Optional[str]
|
||
|
update_by: Optional[str]
|
||
|
update_time: Optional[str]
|
||
|
remark: Optional[str]
|
||
|
|
||
|
class Config:
|
||
|
orm_mode = True
|
||
|
|
||
|
|
||
|
class NewtestPageObject(NewtestModel):
|
||
|
"""
|
||
|
测试管理分页查询模型
|
||
|
"""
|
||
|
page_num: int
|
||
|
page_size: int
|
||
|
|
||
|
|
||
|
class NewtestPageObjectResponse(BaseModel):
|
||
|
"""
|
||
|
新测试管理列表分页查询返回模型
|
||
|
"""
|
||
|
rows: List[Union[NewtestModel, None]] = []
|
||
|
page_num: int
|
||
|
page_size: int
|
||
|
total: int
|
||
|
has_next: bool
|
||
|
|
||
|
|
||
|
class NewtestSelectOptionResponseModel(BaseModel):
|
||
|
"""
|
||
|
新测试管理不分页查询模型
|
||
|
"""
|
||
|
post: List[Union[NewtestModel, None]]
|
||
|
|
||
|
|
||
|
class CrudNewtestResponse(BaseModel):
|
||
|
"""
|
||
|
操作新测试响应模型
|
||
|
"""
|
||
|
is_success: bool
|
||
|
message: str
|
||
|
|
||
|
|
||
|
class DeleteNewtestModel(BaseModel):
|
||
|
"""
|
||
|
删除新测试模型
|
||
|
"""
|
||
|
post_ids: str
|