-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #137 from newnivers/feat/qa
Self-QA
- Loading branch information
Showing
18 changed files
with
206 additions
and
89 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
This file was deleted.
Oops, something went wrong.
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,5 +1,7 @@ | ||
import httpClient from "@/api/core"; | ||
|
||
export const postReservation = (id: number) => { | ||
return httpClient.get(`/arts/tickets/${id}/reserve`); | ||
export const postReservation = (id: number, quantity: number) => { | ||
return httpClient.post(`/art_schedules/${id}/reserve_tickets`, { | ||
data: { quantity }, | ||
}); | ||
}; |
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,53 @@ | ||
import httpClient from "@/api/core"; | ||
import type { RequestData } from "@/api/core"; | ||
import type { ArtInfo } from "@/api/detail"; | ||
|
||
export interface LandingArtListResponseData extends RequestData { | ||
data: LandingList; | ||
} | ||
|
||
export interface TicketShowingPageResponseData extends RequestData { | ||
data: ShowingList; | ||
} | ||
|
||
export interface TicketHomePageResponseData extends RequestData { | ||
data: TicketHome; | ||
} | ||
|
||
interface ShowingList { | ||
showing: ArtInfo[]; | ||
} | ||
|
||
export interface LandingList { | ||
hotRanking: ArtInfo[]; | ||
ticket: ArtInfo[]; | ||
} | ||
|
||
export interface TicketHome { | ||
hotRanking: ArtInfo[]; | ||
ticketOpen: ArtInfo[]; | ||
} | ||
|
||
export const getLandingArtList = async () => { | ||
const response = await httpClient.get<LandingArtListResponseData>( | ||
`/arts/main` | ||
); | ||
|
||
return response.data; | ||
}; | ||
|
||
export const getTicketHomeList = async () => { | ||
const response = await httpClient.get<TicketHomePageResponseData>( | ||
`/arts/home` | ||
); | ||
|
||
return response.data; | ||
}; | ||
|
||
export const getTicketShowingList = async () => { | ||
const response = await httpClient.get<TicketShowingPageResponseData>( | ||
`/arts/showing ` | ||
); | ||
|
||
return response.data; | ||
}; |
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
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
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
Oops, something went wrong.