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.
80 lines
1.6 KiB
80 lines
1.6 KiB
1 month ago
|
from pydantic import BaseModel
|
||
|
from typing import Union, Optional, List
|
||
|
|
||
|
|
||
|
class NddictModel(BaseModel):
|
||
|
"""
|
||
|
数据字典表对应pydantic模型
|
||
|
"""
|
||
|
onum: Optional[int]
|
||
|
data_dict_no: Optional[str]
|
||
|
data_std_no: Optional[str]
|
||
|
data_dict_cn_name: Optional[str]
|
||
|
data_dict_eng_name: Optional[str]
|
||
|
dict_busi_mean: Optional[str]
|
||
|
fld_bype: Optional[str]
|
||
|
fld_dbype: Optional[str]
|
||
|
status: Optional[str]
|
||
|
create_by: Optional[str]
|
||
|
create_time: Optional[str]
|
||
|
update_by: Optional[str]
|
||
|
update_time: Optional[str]
|
||
|
remark: Optional[str]
|
||
|
falias: Optional[str]
|
||
|
|
||
|
class Config:
|
||
|
orm_mode = True
|
||
|
|
||
|
|
||
|
class NddictPageObject(NddictModel):
|
||
|
"""
|
||
|
数据字典管理分页查询模型
|
||
|
"""
|
||
|
page_num: int
|
||
|
page_size: int
|
||
|
|
||
|
class AddNddictModel(NddictModel):
|
||
|
"""
|
||
|
数据字典管理模型
|
||
|
"""
|
||
|
type: Optional[str]
|
||
|
|
||
|
class NddictPageObjectResponse(BaseModel):
|
||
|
"""
|
||
|
新数据字典管理列表分页查询返回模型
|
||
|
"""
|
||
|
rows: List[Union[NddictModel, None]] = []
|
||
|
page_num: int
|
||
|
page_size: int
|
||
|
total: int
|
||
|
has_next: bool
|
||
|
|
||
|
|
||
|
class NddictSelectOptionResponseModel(BaseModel):
|
||
|
"""
|
||
|
新数据字典管理不分页查询模型
|
||
|
"""
|
||
|
post: List[Union[NddictModel, None]]
|
||
|
|
||
|
|
||
|
class CrudNddictResponse(BaseModel):
|
||
|
"""
|
||
|
操作新数据字典响应模型
|
||
|
"""
|
||
|
is_success: bool
|
||
|
message: str
|
||
|
|
||
|
|
||
|
class DeleteNddictModel(BaseModel):
|
||
|
"""
|
||
|
删除新数据字典模型
|
||
|
"""
|
||
|
onums: str
|
||
|
|
||
|
|
||
|
class ImportNddictModel(BaseModel):
|
||
|
"""
|
||
|
批量导入代码管理模型
|
||
|
"""
|
||
|
url: str
|
||
|
is_update: bool
|