modular responses
This commit is contained in:
parent
185f713aeb
commit
cdfa1da90a
@ -1,10 +1,7 @@
|
||||
export class LoginResponse {
|
||||
public message?: string;
|
||||
public error?: string;
|
||||
public token?: string;
|
||||
import { APIResponse } from "./basic";
|
||||
|
||||
export class LoginResponse extends APIResponse {
|
||||
public session?: string;
|
||||
}
|
||||
|
||||
export class RegisterResponse {
|
||||
public message?: string;
|
||||
public error?: string;
|
||||
}
|
||||
export class RegisterResponse extends APIResponse { }
|
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