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.
53 lines
989 B
53 lines
989 B
from pydantic import BaseModel
|
|
from typing import Union, Optional, List
|
|
from module_admin.entity.vo.user_vo import DeptModel
|
|
|
|
|
|
class DeptPageObject(DeptModel):
|
|
"""
|
|
部门管理分页查询模型
|
|
"""
|
|
page_num: int
|
|
page_size: int
|
|
|
|
|
|
class DeptPageObjectResponse(BaseModel):
|
|
"""
|
|
用户管理列表分页查询返回模型
|
|
"""
|
|
rows: List[Union[DeptModel, None]] = []
|
|
page_num: int
|
|
page_size: int
|
|
total: int
|
|
has_next: bool
|
|
|
|
|
|
class DeptResponse(BaseModel):
|
|
"""
|
|
用户管理列表不分页查询返回模型
|
|
"""
|
|
rows: List[Union[DeptModel, None]] = []
|
|
|
|
|
|
class DeptTree(BaseModel):
|
|
"""
|
|
部门树响应模型
|
|
"""
|
|
dept_tree: Union[List, None]
|
|
|
|
|
|
class CrudDeptResponse(BaseModel):
|
|
"""
|
|
操作部门响应模型
|
|
"""
|
|
is_success: bool
|
|
message: str
|
|
|
|
|
|
class DeleteDeptModel(BaseModel):
|
|
"""
|
|
删除部门模型
|
|
"""
|
|
dept_ids: str
|
|
update_by: Optional[str]
|
|
update_time: Optional[str]
|
|
|