-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: event-hall, event-seat http 추가, event seat 컨트롤러 엔드포인트 seat -> s…
…eats 변경
- Loading branch information
Showing
8 changed files
with
135 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
### 공연장 생성 | ||
POST http://localhost:8080/api/v1/event-halls | ||
Content-Type: application/json | ||
|
||
{ | ||
"name" : "잠실 종합운동장", | ||
"address" : "서울특별시 송파구", | ||
"eventHallSeatCreateRequests" : [ | ||
{ | ||
"name": "1A" | ||
}, | ||
{ | ||
"name": "2A" | ||
}, | ||
{ | ||
"name": "1B" | ||
}, | ||
{ | ||
"name": "1Z" | ||
} | ||
] | ||
} | ||
|
||
### 공연장 일괄 조회 | ||
GET http://localhost:8080/api/v1/event-halls | ||
|
||
### 공연장 단일 조회 | ||
GET http://localhost:8080/api/v1/event-halls/2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
### 공연 좌석 구역 생성 | ||
POST http://localhost:8080/api/v1/events/1/seat-area | ||
Content-Type: application/json | ||
|
||
{ | ||
"requests" : | ||
[ | ||
{ | ||
"seatAreaType" : "R", | ||
"price" : 1000 | ||
}, | ||
{ | ||
"seatAreaType" : "S", | ||
"price" : 2000 | ||
} | ||
] | ||
} | ||
|
||
### 공연 좌석 생성 | ||
POST http://localhost:8080/api/v1/event-seats/events/1 | ||
Content-Type: application/json | ||
|
||
[ | ||
{ | ||
"name" : "1A", | ||
"status": "AVAILABLE", | ||
"eventSeatAreaId" : 3 | ||
}, | ||
{ | ||
"name" : "1B", | ||
"status": "AVAILABLE", | ||
"eventSeatAreaId" : 3 | ||
}, | ||
{ | ||
"name": "2A", | ||
"status": "AVAILABLE", | ||
"eventSeatAreaId": 3 | ||
}, | ||
{ | ||
"name" : "1A", | ||
"status": "AVAILABLE", | ||
"eventSeatAreaId" : 4 | ||
}, | ||
{ | ||
"name" : "1B", | ||
"status": "AVAILABLE", | ||
"eventSeatAreaId" : 4 | ||
} | ||
] | ||
|
||
### 공연 회차 좌석 목록 조회 | ||
GET http://localhost:8080/api/v1/event-seats/event-times/1 | ||
|
||
### 공연 회차 등급별 남은 좌석 수 조회 | ||
GET http://localhost:8080/api/v1/event-seats/event-times/1/available-numbers |
11 changes: 3 additions & 8 deletions
11
api/api-event/src/main/java/com/pgms/apievent/eventHall/dto/response/EventHallResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...-event/src/main/java/com/pgms/apievent/eventSeat/dto/request/EventSeatsCreateRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
package com.pgms.apievent.eventSeat.dto.request; | ||
|
||
import com.pgms.coredomain.domain.event.EventSeatArea; | ||
import com.pgms.coredomain.domain.event.EventSeatStatus; | ||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.Size; | ||
|
||
public record EventSeatsCreateRequest(@NotBlank(message = "공연장 좌석은 빈칸을 지정할 수 없습니다.") | ||
@Size(max = 10, message = "공연장 좌석은 10자 이내로 입력해주세요.") String name, | ||
EventSeatStatus status, | ||
EventSeatArea eventSeatArea) { | ||
Long eventSeatAreaId) { | ||
} |
6 changes: 3 additions & 3 deletions
6
api/api-event/src/main/java/com/pgms/apievent/eventSeat/dto/response/EventSeatResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
package com.pgms.apievent.eventSeat.dto.response; | ||
|
||
import com.pgms.apievent.eventSeatArea.dto.response.EventSeatAreaResponse; | ||
import com.pgms.coredomain.domain.event.EventSeat; | ||
import com.pgms.coredomain.domain.event.EventSeatArea; | ||
import com.pgms.coredomain.domain.event.EventSeatStatus; | ||
|
||
public record EventSeatResponse(Long id, | ||
String name, | ||
EventSeatStatus status, | ||
EventSeatArea eventSeatArea) { | ||
EventSeatAreaResponse eventSeatAreaResponse) { | ||
public static EventSeatResponse of(EventSeat eventSeat){ | ||
return new EventSeatResponse(eventSeat.getId(), | ||
eventSeat.getName(), | ||
eventSeat.getStatus(), | ||
eventSeat.getEventSeatArea()); | ||
EventSeatAreaResponse.of(eventSeat.getEventSeatArea())); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters