- 일정 목록 조회 기능 구현 중 - 일정 상세 조회 기능 구현 필요
This commit is contained in:
@@ -45,7 +45,7 @@ async function bootstrap() {
|
|||||||
app.register(fastifyCookie, {
|
app.register(fastifyCookie, {
|
||||||
secret: process.env.JWT_SECRET
|
secret: process.env.JWT_SECRET
|
||||||
});
|
});
|
||||||
// await app.listen(process.env.PORT ?? 3000, '0.0.0.0', () => { process.env.NODE_ENV !== 'prod' && console.log(`servier is running on ${process.env.PORT}`) });
|
await app.listen(process.env.PORT ?? 3000, '0.0.0.0', () => { process.env.NODE_ENV !== 'prod' && console.log(`servier is running on ${process.env.PORT}`) });
|
||||||
await app.listen(process.env.PORT || 3000, () => { process.env.NODE_ENV !== 'prod' && console.log(`service is running on ${process.env.PORT}`)});
|
// await app.listen(process.env.PORT || 3000, () => { process.env.NODE_ENV !== 'prod' && console.log(`service is running on ${process.env.PORT}`)});
|
||||||
}
|
}
|
||||||
bootstrap();
|
bootstrap();
|
||||||
|
|||||||
23
src/modules/schedule/dto/detail/detail-response.dto.ts
Normal file
23
src/modules/schedule/dto/detail/detail-response.dto.ts
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
import { BaseResponseDto } from "src/common/dto/base-response.dto";
|
||||||
|
|
||||||
|
class ScheduleDetail {
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
startDate: Date;
|
||||||
|
endDate: Date;
|
||||||
|
status: string;
|
||||||
|
content?: string | null;
|
||||||
|
isDeleted: boolean;
|
||||||
|
type: string;
|
||||||
|
createdAt: string | null;
|
||||||
|
owner: string;
|
||||||
|
style: string;
|
||||||
|
startTime: string;
|
||||||
|
endTime: string;
|
||||||
|
dayList?: string | null;
|
||||||
|
participantList?: string[] | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export class DetailResponseDto extends BaseResponseDto {
|
||||||
|
data?: ScheduleDetail | null;
|
||||||
|
}
|
||||||
21
src/modules/schedule/dto/list/list-request.dto.ts
Normal file
21
src/modules/schedule/dto/list/list-request.dto.ts
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
import { IsArray, IsDateString, IsString } from "@nestjs/class-validator";
|
||||||
|
|
||||||
|
export class ListRequestDto {
|
||||||
|
@IsDateString()
|
||||||
|
startDate?: string;
|
||||||
|
|
||||||
|
@IsDateString()
|
||||||
|
endDate?: string;
|
||||||
|
|
||||||
|
@IsArray()
|
||||||
|
styleList?: string[];
|
||||||
|
|
||||||
|
@IsArray()
|
||||||
|
typeList?: string[];
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
status?: 'yet' | 'completed' | undefined;
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
name?: string;
|
||||||
|
}
|
||||||
15
src/modules/schedule/dto/list/list-response.dto.ts
Normal file
15
src/modules/schedule/dto/list/list-response.dto.ts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import { BaseResponseDto } from "src/common/dto/base-response.dto";
|
||||||
|
|
||||||
|
class ScheduleList {
|
||||||
|
name: string;
|
||||||
|
id: string;
|
||||||
|
startDate: Date;
|
||||||
|
endDate: Date;
|
||||||
|
type: string;
|
||||||
|
style: string;
|
||||||
|
status: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export class ListResponseDto extends BaseResponseDto {
|
||||||
|
data: ScheduleList[];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user