refactor: 优化请求封装

- 优化Result接口定义
- 新增响应数据解析逻辑
- 优化错误解析逻辑
This commit is contained in:
yangsy
2025-12-17 13:26:25 +08:00
parent 52ba3add3f
commit 9af76bacbb
28 changed files with 191 additions and 328 deletions

View File

@@ -1,5 +1,9 @@
export interface SnapResult {
absoluteFilePath: string;
path: string;
url: string;
code: number;
msg: string;
data: {
absoluteFilePath: string;
path: string;
url: string;
};
}