mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
feat: 优化payload声明 (#10815)
This commit is contained in:
parent
8ac26ab9c6
commit
434a352648
@ -44,11 +44,11 @@ export interface fetchOptions {
|
||||
[propName: string]: any;
|
||||
}
|
||||
|
||||
export interface Payload {
|
||||
export interface Payload<T = any> {
|
||||
ok: boolean;
|
||||
msg: string;
|
||||
msgTimeout?: number;
|
||||
data: any;
|
||||
data: T;
|
||||
status: number;
|
||||
errors?: {
|
||||
[propName: string]: string;
|
||||
|
Loading…
Reference in New Issue
Block a user