refactor: ♻️ 优化axios响应数据TS类型提示

This commit is contained in:
cshaptx4869 committed 2024-05-02 19:05:19 +08:00
1 parent 8c3e1bbbb2
commit 537095912d
8 files changed
+54 -64

No files matched your search

+9
View File
@@ -1,4 +1,13 @@
declare global {
/**
* 响应数据
*/
interface ResponseData<T = any> {
code: string;
data: T;
msg: string;
}
/**
* 分页查询参数
*/