Files
Crm-Backend/schemas/base_crud.py

22 lines
391 B
Python

from typing import TypeVar
from schemas.base import BaseResponse, BaseSchema
SchemaType = TypeVar("SchemaType", bound=BaseSchema)
class BaseGetAllResponse[SchemaType](BaseSchema):
items: list[SchemaType]
class BaseCreateResponse[SchemaType](BaseResponse):
entity: SchemaType
class BaseUpdateResponse(BaseResponse):
pass
class BaseDeleteResponse(BaseResponse):
pass