Skip to content

Commit 4074464

Browse files
committed
refact: 스타일 태그를 배열로 받기 위해 dto 수정
1 parent ced84ab commit 4074464

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/apis/auth/dto.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ export interface getUserInfoByJwtData {
1212
profilePictureUrl: string;
1313
bio: string;
1414
birthDate: string;
15+
userStyletags: string[];
1516
}

src/apis/user/dto.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export interface UserInfoData {
1111
bio: string;
1212
birthDate: string;
1313
isFriend: boolean;
14-
userStyleTag: string[];
14+
userStyletags: string[];
1515
}
1616

1717
// 사용자 정보 조회 응답
@@ -29,7 +29,7 @@ export interface PatchUserInfoRequest {
2929
nickname: string;
3030
profilePictureUrl: string;
3131
bio: string;
32-
userStyleTag: string[];
32+
userStyletags: string[];
3333
}
3434

3535
// 회원 탈퇴 응답

src/pages/SignUp/PickMyStyle/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const PickMyStyle: React.FC = () => {
3939
.filter((category): category is string => !!category); // undefined 제거
4040

4141
const requestData: Partial<PatchUserInfoRequest> = {
42-
userStyleTag: selectedCategories,
42+
userStyletags: selectedCategories,
4343
};
4444
console.log(requestData);
4545

0 commit comments

Comments
 (0)