feat: 优化payload声明 (#10815)

This commit is contained in:
Allen 2024-08-21 14:32:46 +08:00 committed by GitHub
parent 8ac26ab9c6
commit 434a352648
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;