@fle-ui/plus-im-record
Version:
35 lines (34 loc) • 906 B
TypeScript
declare const baseURLMap: {
dev: string;
test: string;
qa: string;
prod: string;
};
export type Env = keyof typeof baseURLMap;
interface ApiMethods {
getAccountInfoByAccid: (data: {
accids: string[];
}) => Promise<any>;
getProductById: (data: {
productId: number;
relationId: string | number;
relationType: string | number;
orderProductId?: number;
}) => Promise<any>;
getCSOrder: (data: {
orderSn: number | string;
orderId: any;
accid?: string;
relationId?: string | number;
relationType?: number;
}) => Promise<any>;
getContact: (params: {
msgId?: string;
}) => Promise<any>;
getOrderGoods: (data: {
orderSn?: any;
messageId?: string;
}) => Promise<any>;
}
export declare const apiCreate: (_env?: Env, token?: string) => ApiMethods;
export {};