Type alias RequestProp

RequestProp: {
    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>
      • Parameters

        Returns Promise<any>

  • Optional delRequest?: ((req: DelReq) => Promise<any>)
      • (req: DelReq): Promise<any>
      • Parameters

        Returns Promise<any>

  • Optional editRequest?: ((req: EditReq) => Promise<any>)
      • (req: EditReq): Promise<any>
      • Parameters

        Returns Promise<any>

  • Optional infoRequest?: ((req: InfoReq) => Promise<any>)
      • (req: InfoReq): Promise<any>
      • Parameters

        Returns Promise<any>

  • Optional pageRequest?: ((query: any) => Promise<any>)
      • (query: any): Promise<any>
      • Parameters

        • query: any

        Returns Promise<any>

  • Optional transformQuery?: ((query: PageQuery) => object)
  • Optional transformRes?: (({ res, query }: any) => PageRes)
      • ({ res, query }: any): PageRes
      • Parameters

        • { res, query }: any

        Returns PageRes

Generated using TypeDoc