feat: common style for getters
This commit is contained in:
@ -27,7 +27,7 @@ class DealService:
|
||||
total_pages = math.ceil(total_items / pagination.items_per_page)
|
||||
|
||||
return GetDealsResponse(
|
||||
deals=[DealSchema.model_validate(deal) for deal in deals],
|
||||
items=[DealSchema.model_validate(deal) for deal in deals],
|
||||
pagination_info=PaginationInfoSchema(
|
||||
total_pages=total_pages, total_items=total_items
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user