12 lines
296 B
TypeScript
12 lines
296 B
TypeScript
|
export default class ApiResponse {
|
||
|
public data: any;
|
||
|
public message: string;
|
||
|
public status: number;
|
||
|
|
||
|
constructor(data: { status: number, message: string, data: any }) {
|
||
|
this.data = data.data;
|
||
|
this.message = data.message;
|
||
|
this.status = data.status;
|
||
|
}
|
||
|
}
|