handleError( error: unknown, requestPath?: string,): { data: null; message: string; code: number; errors?: { field: string; message: string }[]; platform?: string; requestPath?: string;} 参数
- error: unknown
可选
requestPath: string
返回 {
data: null;
message: string;
code: number;
errors?: { field: string; message: string }[];
platform?: string;
requestPath?: string;
}
统一的错误响应格式
处理错误并返回统一格式