添加提交

This commit is contained in:
2025-03-18 19:16:32 +08:00
parent f84f34cc46
commit 55ef262ae8
13 changed files with 304 additions and 44 deletions

View File

@@ -6,8 +6,8 @@ from .models import User, RoleChoices
class UserListSchema(ModelSchema):
@classmethod
def from_orm(cls, obj):
@staticmethod
def get(cls, obj):
raw_password = obj.raw_password if obj.role == RoleChoices.NORMAL else ""
return cls(
id=obj.id,