@3kles/3kles-corebe
Version:
3KLES Core BackEnd
20 lines (19 loc) • 683 B
TypeScript
import { IGenericService, ExecuteOption, ServiceParams } from './IGeneric.service';
export declare abstract class AbstractGenericService implements IGenericService {
protected parameters: ServiceParams;
constructor(params?: ServiceParams);
abstract execute(type: string, data: any, option?: ExecuteOption): Promise<{
data: any;
totalCount?: number;
}>;
getServiceParams(): ServiceParams;
setServiceParams(params: ServiceParams): void;
setHeaders(type: string, headers: {
[key: string]: string;
}): {
[key: string]: string;
};
setCustomHeaders(type: string, data: any): {
[key: string]: string;
};
}