Request
Prop
: { addRequest
?: ((req
: AddReq) => Promise<any>); delRequest
?: ((req
: DelReq) => Promise<any>); editRequest
?: ((req
: EditReq) => Promise<any>); infoRequest
?: ((req
: InfoReq) => Promise<any>); pageRequest
?: ((query
: any) => Promise<any>); transformQuery
?: ((query
: PageQuery) => object); transformRes
?: (({ res, query }
: any) => PageRes); [key:
string]
: any; }
Type declaration
-
[key: string]: any
-
Optional
addRequest?: ((req: AddReq) => Promise<any>)
-
- (req: AddReq): Promise<any>
-
Returns Promise<any>
-
Optional
delRequest?: ((req: DelReq) => Promise<any>)
-
- (req: DelReq): Promise<any>
-
Returns Promise<any>
-
Optional
editRequest?: ((req: EditReq) => Promise<any>)
-
- (req: EditReq): Promise<any>
-
Returns Promise<any>
-
Optional
infoRequest?: ((req: InfoReq) => Promise<any>)
-
- (req: InfoReq): Promise<any>
-
Returns Promise<any>
-
Optional
pageRequest?: ((query: any) => Promise<any>)
-
- (query: any): Promise<any>
-
Returns Promise<any>
-
Optional
transformQuery?: ((query: PageQuery) => object)
-
Optional
transformRes?: (({ res, query }: any) => PageRes)
请求配置