feat: added promocode getting by id, added likes add/delete, code refactoring

This commit is contained in:
ITQ
2025-01-24 22:51:44 +03:00
parent fe2bc038a9
commit afc6a5cf09
5 changed files with 127 additions and 16 deletions
+8
View File
@@ -88,3 +88,11 @@ class PromocodeViewOut(Schema):
is_liked_by_user: bool
like_count: int
comment_count: int
class PromocodeLikeOut(Schema):
status: str = "ok"
class PromocodeRemoveLikeOut(Schema):
status: str = "ok"