Skip to content

Commit

Permalink
✨ feat: add admission type and question category and other type
Browse files Browse the repository at this point in the history
  • Loading branch information
swgvenghy committed Jan 14, 2025
1 parent ca25d4c commit 1fc54bf
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
12 changes: 12 additions & 0 deletions apps/client/src/types/admission-type.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export type admissionType = undefined | 'SUSI' | 'PYEONIP' | 'JEONGSI';

export interface responseDetailAdmissionType {
id: number;
name: string;
admissiontype: admissionType;
}

export interface isActiveAdmissionType {
admissionType: admissionType;
isActivated: boolean;
}
1 change: 1 addition & 0 deletions apps/client/src/types/question-category.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export type questionCategory = 'ADMISSION_GUIDELINE' | 'PASSING_RESULT' | 'PAST_QUESTIONS' | 'INTERVIEW_PRACTICAL_TEST';
20 changes: 20 additions & 0 deletions apps/client/src/types/questions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { admissionType } from './admission-type';
import { questionCategory } from './question-category';

export interface defaultPostQuestion {
admissionType: admissionType;
questionCategory: questionCategory;
content: string;
}

export interface requestAutoComplete extends defaultPostQuestion {
size: number;
cursorViewCount: number;
questionId: number;
}

export interface responseAutoComplete {
content: string;
id: number;
isChecked: boolean;
}

0 comments on commit 1fc54bf

Please sign in to comment.