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.
114 lines
2.4 KiB
114 lines
2.4 KiB
1 month ago
|
from pydantic import BaseModel
|
||
|
from typing import Union, Optional, List
|
||
|
from module_admin.entity.vo.fddict_vo import FddictModel
|
||
|
|
||
|
class NdstandModel(BaseModel):
|
||
|
"""
|
||
|
数据标准表对应pydantic模型
|
||
|
"""
|
||
|
onum: Optional[int]
|
||
|
data_std_no: Optional[str]
|
||
|
data_std_cn_name: Optional[str]
|
||
|
data_std_eng_name: Optional[str]
|
||
|
belt_scop: Optional[str]
|
||
|
busi_defn: Optional[str]
|
||
|
data_std_schm: Optional[str]
|
||
|
std_pri_clas: Optional[str]
|
||
|
std_scd_clas: Optional[str]
|
||
|
std_thre_clas: Optional[str]
|
||
|
data_sec_fifd: Optional[str]
|
||
|
data_clas: Optional[str]
|
||
|
val_scop: Optional[str]
|
||
|
fddict_col_no: 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 NdstandPageObject(NdstandModel):
|
||
|
"""
|
||
|
数据标准管理分页查询模型
|
||
|
"""
|
||
|
page_num: int
|
||
|
page_size: int
|
||
|
|
||
|
class AddNdstandModel(NdstandModel):
|
||
|
"""
|
||
|
数据标准管理模型
|
||
|
"""
|
||
|
type: Optional[str]
|
||
|
|
||
|
class NdstandQueryModel(NdstandModel):
|
||
|
"""
|
||
|
字典类型管理不分页查询模型
|
||
|
"""
|
||
|
create_time_start: Optional[str]
|
||
|
create_time_end: Optional[str]
|
||
|
|
||
|
class FddictPageObjectResponse(BaseModel):
|
||
|
"""
|
||
|
字典数据管理列表分页查询返回模型
|
||
|
"""
|
||
|
rows: List[Union[FddictModel, None]] = []
|
||
|
page_num: int
|
||
|
page_size: int
|
||
|
total: int
|
||
|
has_next: bool
|
||
|
|
||
|
class FddictPageObject(FddictModel):
|
||
|
"""
|
||
|
字典数据管理分页查询模型
|
||
|
"""
|
||
|
page_num: int
|
||
|
page_size: int
|
||
|
|
||
|
|
||
|
class NdstandPageObjectResponse(BaseModel):
|
||
|
"""
|
||
|
新数据标准管理列表分页查询返回模型
|
||
|
"""
|
||
|
rows: List[Union[NdstandModel, None]] = []
|
||
|
page_num: int
|
||
|
page_size: int
|
||
|
total: int
|
||
|
has_next: bool
|
||
|
|
||
|
|
||
|
class NdstandSelectOptionResponseModel(BaseModel):
|
||
|
"""
|
||
|
新数据标准管理不分页查询模型
|
||
|
"""
|
||
|
post: List[Union[NdstandModel, None]]
|
||
|
|
||
|
|
||
|
class CrudNdstandResponse(BaseModel):
|
||
|
"""
|
||
|
操作新数据标准响应模型
|
||
|
"""
|
||
|
is_success: bool
|
||
|
message: str
|
||
|
|
||
|
|
||
|
class DeleteNdstandModel(BaseModel):
|
||
|
"""
|
||
|
删除新数据标准模型
|
||
|
"""
|
||
|
onums: str
|
||
|
|
||
|
|
||
|
class ImportNdstandModel(BaseModel):
|
||
|
"""
|
||
|
批量导入代码管理模型
|
||
|
"""
|
||
|
url: str
|
||
|
is_update: bool
|