2023-02-08 14:57:18 +08:00
|
|
|
from datetime import datetime
|
|
|
|
from typing import Union, Any
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
|
|
|
|
|
|
class UserChangeInfo(BaseModel):
|
|
|
|
id: str
|
|
|
|
name: Union[str, None]
|
|
|
|
avatar: Union[str, None]
|
|
|
|
role: Union[str, None]
|
|
|
|
department: Union[str, None]
|
|
|
|
post: Union[str, None]
|
|
|
|
auth_data: Union[str, None]
|
|
|
|
|
|
|
|
|
|
|
|
class UserChangeInfoByKey(BaseModel):
|
|
|
|
id: str
|
|
|
|
key: str
|
|
|
|
value: Any
|
|
|
|
|
|
|
|
|
|
|
|
class UserListQueryParams(BaseModel):
|
|
|
|
id: str
|
|
|
|
name: Union[str, None]
|
|
|
|
role: Union[str, None]
|
|
|
|
department: Union[str, None]
|
|
|
|
post: Union[str, None]
|
|
|
|
email: Union[str, None]
|
2023-02-09 16:10:25 +08:00
|
|
|
page_size: int
|
|
|
|
page: int
|
2023-02-08 14:57:18 +08:00
|
|
|
# create_time: Union[datetime, None]
|
|
|
|
# update_time: Union[datetime, None]
|
2023-02-09 16:10:25 +08:00
|
|
|
|
|
|
|
|
|
|
|
class UserId:
|
|
|
|
id: str
|