Skip to content

Commit 9c6f83a

Browse files
committed
[#60] ✨ add profile type
1 parent 9c5a1e4 commit 9c6f83a

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/types/profile.types.d.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// 프로필 관련 타입
2+
export type AffiliationType = 'COMPANY_SCHOOL' | 'FREELANCER' | 'OTHER' // 소속 타입
3+
4+
// 공통 프로필 필드
5+
export interface ProfileBase {
6+
nickname?: Nickname // 회원 닉네임
7+
imageUrl?: string // 프로필 사진 URL
8+
introduction?: string // 소개문구
9+
gitHub?: GitHub // GitHub 링크
10+
position?: string[] // 포지션 리스트
11+
techStacks?: TechStack[] // 기술 스택 리스트
12+
affiliation?: AffiliationType // 소속
13+
}
14+
15+
/*
16+
path: '/v1/my-page/profile'
17+
GET: 마이페이지 프로필 조회
18+
*/
19+
export interface GetProfileResponse extends ProfileBase, User {
20+
completionRate: number // 포트폴리오 완성률 (%)
21+
}
22+
23+
/*
24+
PATCH: 마이페이지 프로필 저장
25+
*/
26+
export type ProfileUpdateRequest = ProfileBase
27+
28+
export interface ProfileUpdateResponse extends ProfileBase {
29+
completionRate?: number // 포트폴리오 완성률 (%)
30+
}

0 commit comments

Comments
 (0)