Skip to content

Commit

Permalink
feat: 추가된 api 타입을 추가합니다.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zero-1016 committed Oct 9, 2024
1 parent 3120333 commit cb3f3aa
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/apis/member/member.type.ts → src/apis/member/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export type PositionType = 'DEVELOPER' | 'DESIGNER' | 'PM';

export interface MemberDTO {
id: bigint;
profile: string;
profileUrl: string;
name: string;
provider: SocialType;
status: StatusType;
role: RoleType;
Expand Down
File renamed without changes.
45 changes: 45 additions & 0 deletions src/apis/questionnaire/type.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import type { MemberDTO } from '@/apis/member/type';
import type { CategoryEnum } from '@/enums/categoryEnum';

export type CategoryType = keyof typeof CategoryEnum;

export interface GetCategoryListRequest {
categories: CategoryType[];
}

type QuestionType = {
categoryType: CategoryType;
questions: QuestionnaireType[];
};

type QuestionnaireType = {
questionId: number;
question: string;
options: [string, string, string, string];
};

export interface GetCategoryListResponse {
allQuestions: QuestionType[];
}

export interface PostCreateReviewFormRequest {
projectId: number;
questionIdList: number[];
}

export interface PostCreateReviewFormResponse {
reviewFormId: number;
}

export interface GetProjectMemberRequest {
reviewFormId: number;
}

export interface GetProjectMemberResponse {
memberList: Pick<MemberDTO, 'id' | 'profileUrl' | 'name' | 'tag'>[];
}

export interface PostReviewRequest {
reviewFormId: number;
memberIdList: number[];
}
2 changes: 1 addition & 1 deletion src/components/sign-in/LoginButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { ReactNativeStyle } from '@emotion/native';
import { useMemo } from 'react';
import type { PressableProps } from 'react-native';

import type { SocialType } from '@/apis/member/member.type';
import type { SocialType } from '@/apis/member/type';
import AppleLogoSvg from '@/components/common/icon/apple-logo-svg';
import KakaoLogoSvg from '@/components/common/icon/kakao-logo-svg';
import Typography from '@/components/common/typography';
Expand Down
10 changes: 10 additions & 0 deletions src/enums/categoryEnum.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export enum CategoryEnum {
COMMUNICATION = '커뮤니케이션',
SKILL = '기술',
COLLABORATION = '협업',
LEADERSHIP = '리더십',
DOCUMENTATION = '문서화',
TIME_MANAGEMENT = '시간관리',
PROBLEM_SOLVING = '문제해결',
DILIGENCE = '성실성',
}

0 comments on commit cb3f3aa

Please sign in to comment.