feat: 添加两步验证功能,重构相关逻辑,移除冗余代码
This commit is contained in:
@@ -307,5 +307,4 @@ class User(UserBase, TableBase, table=True):
|
||||
|
||||
def to_public(self) -> "UserPublic":
|
||||
"""转换为公开 DTO,排除敏感字段"""
|
||||
return UserPublic.model_validate(self)
|
||||
|
||||
return UserPublic.model_validate(self)
|
||||
Reference in New Issue
Block a user