-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat upd recruitment-session: service, controller, entity
- Loading branch information
Showing
8 changed files
with
308 additions
and
174 deletions.
There are no files selected for viewing
51 changes: 28 additions & 23 deletions
51
api/src/recruitment-session/create-recruitment-session.dto.ts
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,25 +1,30 @@ | ||
import { RecruitmentSession, RecruitmentSessionState } from "@hkrecruitment/shared/recruitment-session"; | ||
import { | ||
RecruitmentSession, | ||
RecruitmentSessionState, | ||
} from '@hkrecruitment/shared/recruitment-session'; | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class CreateRecruitmentSessionDto implements RecruitmentSession { | ||
@ApiProperty() | ||
state: RecruitmentSessionState; | ||
|
||
@ApiProperty() | ||
slotDuration: number; | ||
|
||
@ApiProperty() | ||
interviewStart: Date; | ||
|
||
@ApiProperty() | ||
interviewEnd: Date; | ||
|
||
@ApiProperty() | ||
days: [Date]; | ||
|
||
@ApiProperty() | ||
createdAt: Date; | ||
|
||
@ApiProperty() | ||
lastModified: Date; | ||
} | ||
export class CreateRecruitmentSessionDto | ||
implements Partial<RecruitmentSession> | ||
{ | ||
//@ApiProperty() | ||
//state: RecruitmentSessionState; | ||
|
||
@ApiProperty() | ||
slotDuration: number; | ||
|
||
@ApiProperty() | ||
interviewStart: Date; | ||
|
||
@ApiProperty() | ||
interviewEnd: Date; | ||
|
||
@ApiProperty() | ||
days: [Date]; | ||
|
||
// @ApiProperty() | ||
// createdAt: Date; | ||
|
||
// @ApiProperty() | ||
// lastModified: Date; | ||
} |
14 changes: 9 additions & 5 deletions
14
api/src/recruitment-session/recruitment-session-response.dto.ts
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,9 +1,13 @@ | ||
import { RecruitmentSession, RecruitmentSessionState } from '@hkrecruitment/shared/recruitment-session'; | ||
import { | ||
RecruitmentSession, | ||
RecruitmentSessionState, | ||
} from '@hkrecruitment/shared/recruitment-session'; | ||
import { Exclude, Expose } from 'class-transformer'; | ||
|
||
@Exclude() | ||
export class RecruitmentSessionResponseDto implements Partial<RecruitmentSession> { | ||
@Expose() id: number; | ||
@Expose() createdAt: Date; | ||
export class RecruitmentSessionResponseDto | ||
implements Partial<RecruitmentSession> | ||
{ | ||
@Expose() id: number; | ||
@Expose() createdAt: Date; | ||
} | ||
|
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.