-
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.
Merge pull request #120 from DEV-dsm/modifyUpdateProfile
(#119) π :: chore :: οΏ½modify update profile
- Loading branch information
Showing
5 changed files
with
69 additions
and
57 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/user/dto/searchProfile.dto.ts β src/profile/dto/searchProfile.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
2 changes: 1 addition & 1 deletion
2
src/user/dto/studentProfile.dto.ts β src/profile/dto/updateStudentProfile.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
33 changes: 24 additions & 9 deletions
33
src/user/dto/teacherProfile.dto.ts β src/profile/dto/updateTeacherProfile.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,55 +1,70 @@ | ||
import { ApiProperty } from "@nestjs/swagger"; | ||
import { IsString } from "class-validator"; | ||
import { IsOptional, IsString } from "class-validator"; | ||
|
||
export class TeacherProfileDto { | ||
export class UpdateTeacherProfileDto { | ||
|
||
@ApiProperty({ | ||
example: "osj", | ||
description: "컀μ€ν μμ΄λ" | ||
}) | ||
@IsString() | ||
identify: string; | ||
@IsOptional() | ||
identify?: string; | ||
|
||
@ApiProperty({ | ||
example: "μ€μμ§", | ||
description: "μ΄λ¦" | ||
}) | ||
@IsString() | ||
@IsOptional() | ||
name?: string; | ||
|
||
@ApiProperty({ | ||
example: "[email protected]", | ||
description: "μ΄λ©μΌ" | ||
}) | ||
@IsString() | ||
email: string; | ||
@IsOptional() | ||
email?: string; | ||
|
||
@ApiProperty({ | ||
example: "asdfasdf", | ||
description: "νλ‘ν μ¬μ§ νμΌ κ²½λ‘" | ||
}) | ||
@IsString() | ||
profile: string; | ||
@IsOptional() | ||
profile?: string; | ||
|
||
@ApiProperty({ | ||
example: "asdfasdf", | ||
description: "λ°°κ²½ μ¬μ§ νμΌ κ²½λ‘" | ||
}) | ||
@IsString() | ||
background: string; | ||
@IsOptional() | ||
background?: string; | ||
|
||
@ApiProperty({ | ||
example: "2μΈ΅ λ³ΈλΆ κ΅λ¬΄μ€", | ||
description: "κ΅λ¬΄μ€ μμΉ" | ||
}) | ||
@IsString() | ||
location: string; | ||
@IsOptional() | ||
location?: string; | ||
|
||
@ApiProperty({ | ||
example: "κ³Όν", | ||
description: "λ΄λΉ κ³Όλͺ©" | ||
}) | ||
@IsString() | ||
subject: string; | ||
@IsOptional() | ||
subject?: string; | ||
|
||
@ApiProperty({ | ||
example: "λ§μ΄μ€ν° λΆμ₯", | ||
description: "λ΄λΉ μ§λ¬΄" | ||
}) | ||
@IsString() | ||
duty: string; | ||
@IsOptional() | ||
duty?: string; | ||
|
||
} |
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