mirror of
https://github.com/KevinMidboe/seasoned.git
synced 2026-03-11 03:49:07 +00:00
Defined request interface & updated expected request status response
This commit is contained in:
19
src/interfaces/IRequestResponse.ts
Normal file
19
src/interfaces/IRequestResponse.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
export interface Result {
|
||||
id: number;
|
||||
title: string;
|
||||
year: number;
|
||||
type: string;
|
||||
status: string;
|
||||
requested_date: Date;
|
||||
}
|
||||
|
||||
export interface IRequestStatusResponse {
|
||||
success: boolean;
|
||||
message?: string;
|
||||
result?: Result;
|
||||
}
|
||||
|
||||
export interface IRequestSubmitResponse {
|
||||
success: boolean;
|
||||
message: string;
|
||||
}
|
||||
Reference in New Issue
Block a user