refactor: ♻️ 优化axios响应数据TS类型提示
This commit is contained in:
9
src/typings/global.d.ts
vendored
9
src/typings/global.d.ts
vendored
@@ -1,4 +1,13 @@
|
||||
declare global {
|
||||
/**
|
||||
* 响应数据
|
||||
*/
|
||||
interface ResponseData<T = any> {
|
||||
code: string;
|
||||
data: T;
|
||||
msg: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询参数
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user