feat: colors for card tags

This commit is contained in:
2025-03-13 19:29:15 +04:00
parent 15d63e35f4
commit 069bab1c01
4 changed files with 60 additions and 5 deletions

View File

@@ -5,14 +5,22 @@ from schemas.base import BaseSchema, OkMessageSchema
# region Entities
class CardTagColorSchema(BaseSchema):
id: int
color: str
background_color: str
label: str
class BaseCardTagSchema(BaseSchema):
name: str
project_id: int
tag_color_id: int
class CardTagSchema(BaseCardTagSchema):
id: int
tag_color: CardTagColorSchema
# endregion
@@ -50,4 +58,8 @@ class DeleteTagResponse(OkMessageSchema):
class SwitchTagResponse(OkMessageSchema):
pass
class GetTagColorsResponse(BaseSchema):
colors: list[CardTagColorSchema]
# endregion