export type TExceptionOption = string | { code: number; msg: string; error?: any; }; export interface IHttpResultPaginate { list: T; total: number; page: number; pageCount: number; count: number; } export interface IHttpResponseBase { code: number; msg: string; timestamp: string; requestId: string; } export type THttpErrorResponse = IHttpResponseBase & { error: any; }; export type THttpSuccessResponse = IHttpResponseBase & { data: T | IHttpResultPaginate; }; export type THttpResponse = THttpErrorResponse | THttpSuccessResponse;