Skip to content

Commit

Permalink
✨ fix: 텔러카드 api 보유 색상 조회 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
taewoo-dev committed Dec 11, 2024
1 parent 1d0a397 commit 00ca513
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/app/v2/colors/dtos/color_dto.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ def builder(cls, color_raw: dict[str, str]) -> "ColorCodeDTO":

class ColorDTO(BaseModel):
colorCode: str
colorName: str
colorHexCode: str
# colorName: str
# colorHexCode: str

@classmethod
def builder(cls, color_raw: dict[str, str]) -> "ColorDTO":
return cls(
colorCode=color_raw.get("color_code", ""),
colorName=color_raw.get("color_name", ""),
colorHexCode=color_raw.get("color_hex_code", ""),
# colorName=color_raw.get("color_name", ""),
# colorHexCode=color_raw.get("color_hex_code", ""),
)
10 changes: 5 additions & 5 deletions src/app/v2/mobiles/dtos/teller_card_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@
from pydantic import BaseModel

from app.v2.badges.dtos.badge_dto import BadgeDTO
from app.v2.colors.dtos.color_dto import ColorCodeDTO
from app.v2.colors.dtos.color_dto import ColorDTO
from app.v2.levels.dtos.level_dto import LevelDTO, LevelInfoDTO
from app.v2.users.dtos.user_info_dto import UserInfoDTO
from common.base_models.base_dtos.base_response import BaseResponseDTO


class DataDTO(BaseModel):
badges: List[BadgeDTO]
colors: List[ColorCodeDTO]
badges: list[BadgeDTO]
colors: list[ColorDTO]
userInfo: UserInfoDTO
levelInfo: LevelInfoDTO
recordCount: int = 0

@classmethod
def builder(
cls,
badges: List[BadgeDTO],
colors: List[ColorCodeDTO],
badges: list[BadgeDTO],
colors: list[ColorDTO],
userInfo: UserInfoDTO,
levelInfo: LevelInfoDTO,
recordCount: Optional[int] = None,
Expand Down
2 changes: 1 addition & 1 deletion src/app/v2/mobiles/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def mobile_main_handler() -> None:
async def mobile_teller_card_handler(user_id: str) -> TellerCardResponseDTO:

badges_task = BadgeService.get_badges_with_details_by_user_id(user_id)
colors_task = ColorService.get_colors(user_id)
colors_task = ColorService.get_colors_with_details_by_user_id(user_id)
level_info_task = LevelService.get_level_info_add_answer_days(user_id)
teller_card_task = TellerCardService.get_teller_card(user_id)
user_info_task = UserService.get_user_info(user_id)
Expand Down

0 comments on commit 00ca513

Please sign in to comment.