import { BaseResponse } from "../helpers"; interface RequsetOptions { data: Record; otherOptions: Record; } /** * api * * @export * @class Api * 静态方法 get post put delete * * @url 请求路径 * @pkId 主键 * @actions 基于url上扩展的方法 * */ /** * actions 事例 { approval: { method: 'put', url: 'approval/{id}' } } */ export default class Api { url: string; pkId: string; actions: Record; constructor(url: string, pkId?: string, actions?: {}); get(data: any, otherOptions: any): Promise>; query({ data, otherOptions }: Partial): Promise>; create({ data, otherOptions }: Partial): Promise>; update(data: any, otherOptions: any): Promise>; delete(data: any, otherOptions: any): Promise>; getNormal(data: any, otherOptions: any): Promise>; static get(url: any, data: any, otherOptions: any): Promise>; static post(url: any, data: any, otherOptions: any): Promise>; static put(url: any, data: any, otherOptions: any): Promise>; static delete(url: any, data: any, otherOptions: any): Promise>; } export {}; //# sourceMappingURL=api.d.ts.map