Skip to content

Commit

Permalink
chore : 아티스트 정보 Update Dto 추가
Browse files Browse the repository at this point in the history
* image_url과 nickname 포함
  • Loading branch information
sk000801 committed Jan 8, 2024
1 parent 4fcb559 commit 08854bf
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions server/src/dto/userUpdate.dto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import {
IsNotEmpty,
IsString,
Matches,
MaxLength,
MinLength,
} from 'class-validator';

export class UserUpdateDto {
@MinLength(2, { message: '닉네임이 2글자 미만입니다.' })
@MaxLength(10, { message: '닉네임이 10글자 초과입니다.' })
@Matches(/^[가-힣a-zA-Z0-9_.]+$/)
nickname: string | null;

@IsNotEmpty()
@IsString()
image_url: string;
}

0 comments on commit 08854bf

Please sign in to comment.