issue #63
All checks were successful
Test CI / build (push) Successful in 1m16s

- 일정 목록 조회 기능 구현 중
- 일정 상세 조회 기능 구현 필요
This commit is contained in:
geonhee-min
2025-12-10 17:15:15 +09:00
parent bb79557876
commit 34c33202c6
4 changed files with 61 additions and 2 deletions

View File

@@ -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();

View 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;
}

View 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;
}

View 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[];
}