feat: add models for backend response

This commit is contained in:
2025-12-11 23:14:34 -03:00
parent a8fd369718
commit 44005a0aa5
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
import { ResponseError } from "./ResponseError";
export interface Response<T> {
data: T;
errors: ResponseError[];
message: string;
success: boolean;
}

View File

@@ -0,0 +1,6 @@
export interface ResponseError {
code: number;
details: string;
field: string;
message: string;
}