添加mcp配置
This commit is contained in:
39
service/wecom/schemas/users.py
Normal file
39
service/wecom/schemas/users.py
Normal file
@@ -0,0 +1,39 @@
|
||||
from typing import AnyStr, List
|
||||
|
||||
from wecom.schemas.base import BaseSchema
|
||||
|
||||
|
||||
class UserInfo(BaseSchema):
|
||||
"""
|
||||
用户单体响应数据
|
||||
"""
|
||||
|
||||
errcode: int
|
||||
errmsg: AnyStr
|
||||
userid: AnyStr | None = None
|
||||
name: AnyStr | None = None
|
||||
department: List[int] | None = None
|
||||
position: AnyStr | None = None
|
||||
moblie: AnyStr | None = None
|
||||
gender: int | None = None
|
||||
email: AnyStr | None = None
|
||||
status: int | None = None
|
||||
|
||||
|
||||
class UserSimpleInfo(BaseSchema):
|
||||
userid: AnyStr
|
||||
name: AnyStr
|
||||
department: List[int]
|
||||
open_userid: AnyStr | None = None
|
||||
|
||||
|
||||
class DepartmentUserInfo(BaseSchema):
|
||||
errcode: int
|
||||
errmsg: AnyStr
|
||||
userlist: List[UserSimpleInfo]
|
||||
|
||||
|
||||
class DepartmentUserDetailInfo(BaseSchema):
|
||||
errcode: int
|
||||
errmsg: AnyStr
|
||||
userlist: List[UserInfo]
|
||||
Reference in New Issue
Block a user