modular responses
This commit is contained in:
parent
185f713aeb
commit
cdfa1da90a
@ -1,10 +1,7 @@
|
|||||||
export class LoginResponse {
|
import { APIResponse } from "./basic";
|
||||||
public message?: string;
|
|
||||||
public error?: string;
|
export class LoginResponse extends APIResponse {
|
||||||
public token?: string;
|
public session?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class RegisterResponse {
|
export class RegisterResponse extends APIResponse { }
|
||||||
public message?: string;
|
|
||||||
public error?: string;
|
|
||||||
}
|
|
4
src/app/services/responses/basic.ts
Normal file
4
src/app/services/responses/basic.ts
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export class APIResponse {
|
||||||
|
public message?: string;
|
||||||
|
public error?: string;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user