feat(auth): 仓储接口新增find_by_wechat_openid/unionid方法
This commit is contained in:
@@ -41,6 +41,16 @@ class UserRepository(ABC):
|
||||
"""根据密码重置令牌查找用户"""
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def find_by_wechat_openid(self, openid: str) -> Optional[User]:
|
||||
"""根据微信 openid 查找用户"""
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def find_by_wechat_unionid(self, unionid: str) -> Optional[User]:
|
||||
"""根据微信 unionid 查找用户"""
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def delete(self, user_id: str) -> bool:
|
||||
"""删除用户"""
|
||||
|
||||
Reference in New Issue
Block a user