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.
44 lines
815 B
44 lines
815 B
from pydantic import BaseModel
|
|
from typing import Union, List
|
|
from module_admin.entity.vo.user_vo import PostModel
|
|
|
|
|
|
class PostPageObject(PostModel):
|
|
"""
|
|
岗位管理分页查询模型
|
|
"""
|
|
page_num: int
|
|
page_size: int
|
|
|
|
|
|
class PostPageObjectResponse(BaseModel):
|
|
"""
|
|
岗位管理列表分页查询返回模型
|
|
"""
|
|
rows: List[Union[PostModel, None]] = []
|
|
page_num: int
|
|
page_size: int
|
|
total: int
|
|
has_next: bool
|
|
|
|
|
|
class PostSelectOptionResponseModel(BaseModel):
|
|
"""
|
|
岗位管理不分页查询模型
|
|
"""
|
|
post: List[Union[PostModel, None]]
|
|
|
|
|
|
class CrudPostResponse(BaseModel):
|
|
"""
|
|
操作岗位响应模型
|
|
"""
|
|
is_success: bool
|
|
message: str
|
|
|
|
|
|
class DeletePostModel(BaseModel):
|
|
"""
|
|
删除岗位模型
|
|
"""
|
|
post_ids: str
|
|
|