MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / UserCreateRequest

Class UserCreateRequest

src/app/user/dto/user.py:51–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50
51class UserCreateRequest(UserBase):
52 def to_user(self) -> User:
53 return User(
54 first_name=self.first_name,
55 second_name=self.second_name,
56 email=self.email,
57 status=UserStatus.PENDING,
58 roles=self.roles or [Role.USER],
59 )
60
61
62class UserListRequest(Paginated):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected