Refactoring code module 03_retire
This commit is contained in:
parent
9fbbbd753f
commit
763ec2fd95
6 changed files with 171 additions and 224 deletions
63
src/modules/03_retire/interface/Main.ts
Normal file
63
src/modules/03_retire/interface/Main.ts
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
interface QuestionDescription {
|
||||
question1Desc: string;
|
||||
question2Desc: string;
|
||||
question3Desc: string;
|
||||
question4Desc: string;
|
||||
question5Desc: string;
|
||||
question6Desc: string;
|
||||
question7Desc: string;
|
||||
question8Desc: string;
|
||||
question9Desc: string;
|
||||
question10Desc: string;
|
||||
[key: string]: string;
|
||||
}
|
||||
|
||||
interface OptionQuestions {
|
||||
label: string;
|
||||
value: number;
|
||||
}
|
||||
interface OptionQuestions2 {
|
||||
label: string;
|
||||
value: boolean;
|
||||
}
|
||||
|
||||
interface MainList {
|
||||
id: string;
|
||||
location: string;
|
||||
sendDate: string;
|
||||
activeDate: string;
|
||||
reason: string;
|
||||
approveReason: string | null;
|
||||
rejectReason: string | null;
|
||||
status: string;
|
||||
isActive: boolean;
|
||||
}
|
||||
|
||||
interface MainList {
|
||||
id: string;
|
||||
placeLeave: string;
|
||||
dateStartLeave: string;
|
||||
dateLeave: string;
|
||||
status: string;
|
||||
statustext: string;
|
||||
}
|
||||
|
||||
interface MainListResponse {
|
||||
id: string;
|
||||
location: string;
|
||||
sendDate: Date | null;
|
||||
activeDate: Date | null;
|
||||
reason: string;
|
||||
approveReason: string | null;
|
||||
rejectReason: string | null;
|
||||
status: string;
|
||||
isActive: boolean;
|
||||
}
|
||||
|
||||
export type {
|
||||
QuestionDescription,
|
||||
OptionQuestions,
|
||||
OptionQuestions2,
|
||||
MainList,
|
||||
MainListResponse,
|
||||
};
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
interface QuestionDescription {
|
||||
question1Desc: string;
|
||||
question2Desc: string;
|
||||
question3Desc: string;
|
||||
question4Desc: string;
|
||||
question5Desc: string;
|
||||
question6Desc: string;
|
||||
question7Desc: string;
|
||||
question8Desc: string;
|
||||
question9Desc: string;
|
||||
question10Desc: string;
|
||||
[key: string]: string;
|
||||
}
|
||||
|
||||
interface OptionQuestions {
|
||||
label: string;
|
||||
value: number;
|
||||
}
|
||||
interface OptionQuestions2 {
|
||||
label: string;
|
||||
value: boolean;
|
||||
}
|
||||
|
||||
export type { QuestionDescription, OptionQuestions, OptionQuestions2 };
|
||||
Loading…
Add table
Add a link
Reference in a new issue