(#28) Add output data mod

This commit is contained in:
MrKBear 2022-01-20 20:57:41 +08:00
parent d9825d6d68
commit a8e16f5972

View File

@ -13,30 +13,62 @@ interface IScheduleInput {
semester: string; semester: string;
} }
interface IClassData {
/**
*
*/
name: string;
/**
*
*/
room?: string;
/**
*
*/
teacher?: string;
/**
*
*/
week: string;
}
interface IScheduleOutput { interface IScheduleOutput {
} /**
*
*/
classList: IClassData[];
/**
*
*/
index: number;
}[];
interface IScheduleEvent { interface IScheduleEvent {
/** /**
* session * session
*/ */
expire: GeneralCallbackResult; expire: GeneralCallbackResult;
/** /**
* *
*/ */
unauthorized: GeneralCallbackResult; unauthorized: GeneralCallbackResult;
/** /**
* *
*/ */
error: GeneralCallbackResult; error: GeneralCallbackResult;
/** /**
* *
*/ */
badData: GeneralCallbackResult; badData: GeneralCallbackResult;
} }
@ -72,4 +104,7 @@ class Schedlue extends API<IScheduleInput, IScheduleOutput, IScheduleEvent> {
this.addFailedCallBack(); this.addFailedCallBack();
} }
} }
export { Schedlue };
export default Schedlue;