endpoint定义修改
This commit is contained in:
parent
056a7a58e8
commit
2f895a4785
|
|
@ -22,7 +22,7 @@ export interface FreeEndpoint<ED extends EntityDict & BaseEntityDict, BackCxt ex
|
||||||
method: 'get' | 'post' | 'put' | 'delete';
|
method: 'get' | 'post' | 'put' | 'delete';
|
||||||
type: "free";
|
type: "free";
|
||||||
fn: (contextBuilder: () => Promise<BackCxt>, params: Record<string, string>, headers: IncomingHttpHeaders, req: IncomingMessage, body?: any) => Promise<{
|
fn: (contextBuilder: () => Promise<BackCxt>, params: Record<string, string>, headers: IncomingHttpHeaders, req: IncomingMessage, body?: any) => Promise<{
|
||||||
contentType: string;
|
headers?: Record<string, string | string[]>;
|
||||||
data: any;
|
data: any;
|
||||||
}>;
|
}>;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ export interface FreeEndpoint<ED extends EntityDict & BaseEntityDict, BackCxt ex
|
||||||
type: "free";
|
type: "free";
|
||||||
fn: (contextBuilder: () => Promise<BackCxt>, params: Record<string, string>, headers: IncomingHttpHeaders,
|
fn: (contextBuilder: () => Promise<BackCxt>, params: Record<string, string>, headers: IncomingHttpHeaders,
|
||||||
req: IncomingMessage, body?: any) => Promise<{
|
req: IncomingMessage, body?: any) => Promise<{
|
||||||
contentType: string;
|
headers?: Record<string, string | string[]>;
|
||||||
data: any;
|
data: any;
|
||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue