-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat : 티켓상품 옵션 조회 #234
feat : 티켓상품 옵션 조회 #234
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
굿굿
@RedissonLock(LockName = "티켓상품", identifier = "ticketItemId") | ||
public GetTicketItemOptionResponse execute(Long eventId, Long ticketItemId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
조회 용은 락 걸 필요 없을것 같아요
어차피 프론트 넘어가서 새로고침 안하면 똑같으니깐?
TicketItem ticketItem = ticketItemAdaptor.queryTicketItem(ticketItemId); | ||
ticketItem.checkEventId(eventId); | ||
List<Long> optionGroupIds = ticketItem.getOptionGroupIds(); | ||
List<OptionGroup> optionGroups = optionGroupAdaptor.findAllByIds(optionGroupIds); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요기근데 아이템쪽은 레이지로딩으로 땡겨오는게 맞지않남?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
으악 멍청이
"optionGroups": [
{
"optionGroupId": 1,
"type": "Y/N",
"name": "뒷풀이 참여 여부",
"description": "공연이 끝난 후 오케이포차에서 진행하는 뒷풀이에 참여할 것인가요?",
"options": [
{
"optionId": 1,
"answer": "YES", ///. <--- 예 아니요 로 응답해줘야되지않나 싶음...!
"additionalPrice": "10000원"
},
{
"optionId": 2,
"answer": "NO",
"additionalPrice": "0원"
}
]
},
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ⭐
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
public static CreateTicketOptionResponse from(OptionGroup optionGroup) { | ||
public static TicketOptionResponse from(OptionGroup optionGroup) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
response dto의 static 메소드 명은 of 로 통일하는게 어떨까요?
dto -> of / vo -> from 으로 다들 쓰고 있는 거 같아요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from 매개변수 하나있을땨
of 여러개있을때
이렇게 쓰고있어요 전!
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
개요
작업사항
변경로직