File size: 433 Bytes
b1eced0
 
 
 
 
 
 
 
 
 
 
3e8fd5d
b1eced0
3e8fd5d
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from pydantic import BaseModel

from trauma.api.common.dto import Paging
from trauma.api.data.model import EntityModel
from trauma.core.wrappers import TraumaResponseWrapper


class AllFacilitiesResponse(BaseModel):
    paging: Paging
    data: list[EntityModel]


class AllFacilitiesWrapper(TraumaResponseWrapper[AllFacilitiesResponse]):
    pass


class SearchRequest(BaseModel):
    name: str
    pageSize: int
    pageIndex: int