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

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

View File

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