Skip to content

Commit

Permalink
#244 feat: 세미나실 예약 엔드포인트 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
pillow12360 committed Jan 4, 2025
1 parent 852c280 commit 9cdaa9c
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions frontend/src/config/apiConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,24 @@ export interface SeminarDto {
company: string;
}

export interface SeminarRoomReqDto {
name: string;
personCapacity: number;
place: string;
image: string;
}

export interface ReservationReqDto {
roomId: number;
date: string;
startTime: string;
endTime: string;
userName: string;
purpose: '세미나' | '스터디' | '미팅' | '기타';
contact: string;
department?: string;
}

export const apiEndpoints = {
thesis: {
list: `${API_URL}/api/thesis`,
Expand Down Expand Up @@ -266,6 +284,25 @@ export const apiEndpoints = {
delete: (seminarId: string | number) =>
`${API_URL}/api/seminar/${seminarId}`,
},
seminarRoom: {
base: `${API_URL}/api/seminar-rooms`,
list: `${API_URL}/api/seminar-rooms`,
get: (roomId: number) => `${API_URL}/api/seminar-rooms/${roomId}`,
reservations: {
list: (roomId: number) =>
`${API_URL}/api/seminar-rooms/${roomId}/reservations`,
create: (roomId: number) =>
`${API_URL}/api/seminar-rooms/${roomId}/reservations`,
get: (roomId: number, reservationId: number) =>
`${API_URL}/api/seminar-rooms/${roomId}/reservations/${reservationId}`,
update: (roomId: number, reservationId: number) =>
`${API_URL}/api/seminar-rooms/${roomId}/reservations/${reservationId}`,
delete: (roomId: number, reservationId: number) =>
`${API_URL}/api/seminar-rooms/${roomId}/reservations/${reservationId}`,
getByDate: (roomId: number, date: string) =>
`${API_URL}/api/seminar-rooms/${roomId}/reservations/date/${date}`,
},
},
};

export default API_URL;

0 comments on commit 9cdaa9c

Please sign in to comment.