Skip to content

Commit 0d3e890

Browse files
committed
[#60] 🚚 rename types name in portfolio
1 parent b921f98 commit 0d3e890

File tree

1 file changed

+27
-24
lines changed

1 file changed

+27
-24
lines changed

src/types/api/Portfolio.types.d.ts

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,53 +3,53 @@ export type CommunityCategory = 'SKILL' | 'CAREER' | 'OTHER'
33
export type CommunityLabelCategory = '기술' | '커리어' | '기타'
44

55
// 기본 포트폴리오 타입
6-
export interface PortfolioBase {
6+
interface PortfolioBase {
77
portTitle: string // 포트폴리오 제목
88
portPosition: string // 역할 또는 직무
99
tags: string[] // 태그 리스트
1010
portImageUrl: string // 대표 이미지 URL
1111
}
1212

1313
// 수상 타입 (Award)
14-
export type AwardType = 'COMPETITION' | 'CERTIFICATE' | 'LANGUAGE' | 'ACTIVITY'
14+
type AwardType = 'COMPETITION' | 'CERTIFICATE' | 'LANGUAGE' | 'ACTIVITY'
1515

1616
// 활동 상세 타입
17-
export interface ActivityAward {
17+
interface ActivityAward {
1818
activityName?: string // 활동명
1919
startDate?: string // 활동 시작일 (YYYY-MM-DD)
2020
endDate?: string // 활동 종료일 (YYYY-MM-DD)
2121
}
2222

2323
// 자격증 상세 타입
24-
export interface CertificateAward {
24+
interface CertificateAward {
2525
certificateName?: string // 자격증명
2626
issuer?: string // 발행처
2727
passingDate?: string // 합격 년월 (YYYY-MM-DD)
2828
}
2929

3030
// 언어 능력 상세 타입
31-
export interface LanguageAward {
31+
interface LanguageAward {
3232
language?: string // 언어 이름
3333
testName?: string // 시험명
3434
score?: string // 점수
3535
obtainedDate?: string // 취득일 (YYYY-MM-DD)
3636
}
3737

3838
// 공모전 상세 타입
39-
export interface CompetitionAward {
39+
interface CompetitionAward {
4040
competitionName?: string // 공모전명
4141
hostingInstitution?: string // 주최기관
4242
competitionDate?: string // 공모일 (YYYY-MM-DD)
4343
}
4444

4545
// 링크 타입
46-
export interface PortfolioLink {
46+
interface PortfolioLink {
4747
type?: string // 링크 유형 (예: github, blog)
4848
url?: string // URL
4949
}
5050

5151
// 학력 상세 타입
52-
export interface PortfolioEducation {
52+
interface PortfolioEducation {
5353
level?: string // 학력 구분 (예: 대학, 고등학교)
5454
institutionName?: string // 학교명
5555
major?: string // 전공
@@ -62,7 +62,7 @@ export interface PortfolioEducation {
6262
}
6363

6464
// 경력 상세 타입
65-
export interface PortfolioCareer {
65+
interface PortfolioCareer {
6666
companyName?: string // 회사명
6767
position?: string // 직무
6868
startDate?: string // 입사일 (YYYY-MM-DD)
@@ -73,30 +73,26 @@ export interface PortfolioCareer {
7373
}
7474

7575
// 상장 요청 타입
76-
export interface AwardRequestBase {
76+
interface AwardRequestBase {
7777
awardType?: AwardType
7878
}
79-
export interface ActivityAwardRequest extends AwardRequestBase, ActivityAward {
79+
interface ActivityAwardRequest extends AwardRequestBase, ActivityAward {
8080
awardType: 'ACTIVITY'
8181
}
82-
export interface CertificateAwardRequest
83-
extends AwardRequestBase,
84-
CertificateAward {
82+
interface CertificateAwardRequest extends AwardRequestBase, CertificateAward {
8583
awardType: 'CERTIFICATE'
8684
}
87-
export interface CompetitionAwardRequest
88-
extends AwardRequestBase,
89-
CompetitionAward {
85+
interface CompetitionAwardRequest extends AwardRequestBase, CompetitionAward {
9086
awardType: 'COMPETITION'
9187
}
92-
export interface LanguageAwardRequest extends AwardRequestBase, LanguageAward {
88+
interface LanguageAwardRequest extends AwardRequestBase, LanguageAward {
9389
awardType: 'LANGUAGE'
9490
}
9591

96-
// 포트폴리오 리스트 조회
92+
// 포트폴리오 리스트 아이템
9793
export type PortfolioListItem = PortfolioBase & PostBaseBody
9894

99-
// 포트폴리오 리스트 조회
95+
// 포트폴리오 상세글
10096
export interface PortfolioDetail extends PortfolioBase {
10197
portContent: string // 상세 내용
10298
techStacks: TechStack[] // 사용 기술 스택
@@ -111,8 +107,15 @@ export interface PortfolioDetail extends PortfolioBase {
111107
careers?: PortfolioCareer[] // 경력 리스트
112108
}
113109

114-
// 포트폴리오 생성 요청 타입
115-
export type PortfolioCreateRequest = MultipartFormData<PortfolioDetail>
110+
/**
111+
path: '/v1/portfolio'
112+
GET: 포트폴리오 전체 리스트 조회
113+
*/
114+
export type GetPortfolioListResponse = PortfolioListItem[]
116115

117-
// 포트폴리오 생성 응답 타입
118-
export type PortfolioCreateResponse = PortfolioCreateRequest & PostBaseBody
116+
/**
117+
path: '/v1/portfolio'
118+
POST: 포트폴리오 글 등록
119+
*/
120+
export type CreatePortfolioRequest = MultipartFormData<PortfolioDetail>
121+
export type CreatePortfolioResponse = CreatePortfolioRequest & PostBaseBody

0 commit comments

Comments
 (0)