feat: get users includes org info
This commit is contained in:
parent
7833386350
commit
8a9f03ee0b
3 changed files with 13 additions and 4 deletions
|
|
@ -17,13 +17,17 @@ from src.user.schemas import UserIDMixin
|
|||
from src.organisation.constants import Status, ContactType
|
||||
|
||||
|
||||
class OrgIDMixin(CustomBaseModel):
|
||||
organisation_id: int = Field(gt=0)
|
||||
|
||||
class Questionnaire(CustomBaseModel):
|
||||
question_one: Optional[str] = None
|
||||
question_two: Optional[str] = None
|
||||
question_three: Optional[str] = None
|
||||
|
||||
class OrgIDMixin(CustomBaseModel):
|
||||
organisation_id: int = Field(gt=0)
|
||||
class OrgSchema(CustomBaseModel):
|
||||
id: int
|
||||
name: str
|
||||
|
||||
|
||||
class OrgPostOrgRequest(CustomBaseModel):
|
||||
|
|
@ -84,6 +88,7 @@ class OrgPatchRootResponse(CustomBaseModel):
|
|||
|
||||
class OrgGetUserResponse(CustomBaseModel):
|
||||
users: list[str]
|
||||
organisation: OrgSchema
|
||||
|
||||
class OrgGetGroupResponse(CustomBaseModel):
|
||||
groups: list[str]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue