@choerodon/master
Version:
A package of Master for Choerodon platform.
18 lines (17 loc) • 657 B
TypeScript
import { AxiosRequestConfig } from 'axios';
declare class Api<T> {
isConfig: boolean;
constructor(isConfig?: boolean);
request(AxiosConfig: AxiosRequestConfig): AxiosRequestConfig | import("axios").AxiosPromise;
get projectId(): any;
get orgId(): any;
/**
* 目的:达到api.project(2).getList()中getList获取的projectId为2,而不是当前projectId
* @param Property 要覆盖的key
* @param value 要覆盖的值
*/
overwrite(Property: string, value: any): T;
project(projectId: string | number | undefined): T | this;
org(orgId: string | number | undefined): T | this;
}
export default Api;