feat: add models for backend response
This commit is contained in:
8
src/app/models/Response.ts
Normal file
8
src/app/models/Response.ts
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
import { ResponseError } from "./ResponseError";
|
||||||
|
|
||||||
|
export interface Response<T> {
|
||||||
|
data: T;
|
||||||
|
errors: ResponseError[];
|
||||||
|
message: string;
|
||||||
|
success: boolean;
|
||||||
|
}
|
||||||
6
src/app/models/ResponseError.ts
Normal file
6
src/app/models/ResponseError.ts
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
export interface ResponseError {
|
||||||
|
code: number;
|
||||||
|
details: string;
|
||||||
|
field: string;
|
||||||
|
message: string;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user