Skip to content

Commit e822289

Browse files
committed
[#60] ✨ apply multipart formdata interface on file upload requiring types
1 parent 3402b32 commit e822289

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/types/api/MyPage.types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export interface GetProfileResponse extends ProfileBase, User {
2323
/*
2424
PATCH: 마이페이지 프로필 저장
2525
*/
26-
export type ProfileUpdateRequest = ProfileBase
26+
export type ProfileUpdateRequest = MultipartFormData<ProfileBase>
2727

2828
export interface ProfileUpdateResponse extends ProfileBase {
2929
completionRate?: number // 포트폴리오 완성률 (%)

src/types/api/portfolio.types.d.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ export interface LanguageAwardRequest extends AwardRequestBase, LanguageAward {
9696
// 포트폴리오 리스트 조회
9797
export type PortfolioListItem = PortfolioBase & PostBaseBody
9898

99-
// 포트폴리오 생성 요청 타입
100-
export interface PortfolioCreateRequest extends PortfolioBase {
99+
// 포트폴리오 리스트 조회
100+
export interface PortfolioDetail extends PortfolioBase {
101101
portContent: string // 상세 내용
102102
techStacks: TechStack[] // 사용 기술 스택
103103
links?: PortfolioLink[] // 외부 링크
@@ -111,5 +111,8 @@ export interface PortfolioCreateRequest extends PortfolioBase {
111111
careers?: PortfolioCareer[] // 경력 리스트
112112
}
113113

114+
// 포트폴리오 생성 요청 타입
115+
export type PortfolioCreateRequest = MultipartFormData<PortfolioDetail>
116+
114117
// 포트폴리오 생성 응답 타입
115118
export type PortfolioCreateResponse = PortfolioCreateRequest & PostBaseBody

0 commit comments

Comments
 (0)