refactor: ♻️ 优化axios响应数据TS类型提示
This commit is contained in:
1 parent
8c3e1bbbb2
commit
537095912d
8 files changed
+54
-64
No files matched your search
Vendored
+9
@@ -1,4 +1,13 @@
|
||||
declare global {
|
||||
/**
|
||||
* 响应数据
|
||||
*/
|
||||
interface ResponseData<T = any> {
|
||||
code: string;
|
||||
data: T;
|
||||
msg: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询参数
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user