feat(auth): /auth/me 与登录响应暴露 wxBound/wxMiniBound 绑定状态
- UserProfile schema 增加 wxBound/wxMiniBound(LoginResponse/ProfileResponse 继承) - to_profile 补 wx_openid/wx_mini_openid 判定,web/admin 正确识别手机号+小程序绑定
This commit is contained in:
@@ -76,6 +76,8 @@ class UserProfile(BaseModel):
|
||||
name: str = "" # 别名 = nickname(小程序契约:显示名 / 报名资料姓名)
|
||||
phone: str = "" # 已绑定手机号
|
||||
phoneBound: bool = False # 是否已绑手机(小程序「已绑定手机」徽标/绑定门槛)
|
||||
wxBound: bool = False # 是否已绑定微信开放平台 openid
|
||||
wxMiniBound: bool = False # 是否已绑定小程序 openid(各端口共享)
|
||||
account: str = ""
|
||||
company: str = ""
|
||||
room: str = ""
|
||||
|
||||
Reference in New Issue
Block a user