File tree Expand file tree Collapse file tree
feature/performanceNews/performanceList Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// src/feature/performanceList/api.ts
22
3- import { api } from ' @/api/api' ;
4- import type { PerformanceListQuery , PerformanceListResponse } from ' ./types' ;
3+ import { api } from " @/api/api" ;
4+ import type { PerformanceListQuery , PerformanceListResponse } from " ./types" ;
55
66export const getPerformanceList = async (
77 query : PerformanceListQuery
88) : Promise < PerformanceListResponse > => {
99 const { status, isUsed, page = 0 } = query ;
1010
1111 console . log ( isUsed ) ;
12- const res = await api . get ( ' /performance/' , {
12+ const res = await api . get ( " /performance/" , {
1313 params : {
1414 status,
1515
16- ...( typeof isUsed === ' boolean' ? { isUsed } : { } ) ,
16+ ...( typeof isUsed === " boolean" ? { isUsed } : { } ) ,
1717 page,
1818 } ,
1919 } ) ;
Original file line number Diff line number Diff line change 11// src/feature/performanceList/types.ts
22
3- export type PerformanceStatus = ' ONGOING' | ' UPCOMING' | ' PAST' ;
3+ export type PerformanceStatus = " ONGOING" | " UPCOMING" | " PAST" ;
44
55export type PerformanceListQuery = {
66 status : PerformanceStatus ;
@@ -14,8 +14,10 @@ export type PerformanceListItem = {
1414 title : string ;
1515 place : string ;
1616 startDate : string ; // 'YYYY-MM-DD'
17- endDate : string ; // 'YYYY-MM-DD'
17+ endDate : string ; // 'YYYY-MM-DD'
1818 isUsed : boolean ;
19+ isOwner : boolean ;
20+ link : string ;
1921} ;
2022
2123export type PerformanceListResponse = PerformanceListItem [ ] ;
You can’t perform that action at this time.
0 commit comments