-
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 : 티켓 상품 생성 #164
feat : 티켓 상품 생성 #164
Conversation
@Schema(nullable = false, example = "1") | ||
private Long purchaseLimit; | ||
|
||
public TicketItem toEntity(Event event) { |
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.
저도 처음에 request dto에 넣었었는데 mapper 만들어서 거기서 빌더쓰는 게 좀 더 깔끔해 보이는 것 같아요.
리팩토링하면 mapper로 옮기려구요.
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.
굿임니다요~
@SecurityRequirement(name = "access-token") | ||
@Tag(name = "티켓 상품 관련 컨트롤러") | ||
@RestController | ||
@RequestMapping("/v1/ticket_items") |
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.
ticketItems 로 해유!
저희 이렇게 컨벤션 자연스래? 맞춰진것같아요
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.
뉑뉑
hostService.hasHostUser(host, user.getId()); | ||
// 호스트 제휴 여부에 따른 가격 체크 | ||
if (!host.getPartner()) { | ||
ticketItemService.checkTicketPrice(Money.wons(createTicketItemRequest.getPrice())); | ||
} | ||
TicketItem ticketItem = | ||
ticketItemService.createTicketItem(createTicketItemRequest.toEntity(event)); | ||
return CreateTicketItemResponse.from(ticketItem); |
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.
수고하셨습니다!
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
개요
작업사항
변경로직