mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-02-01 18:20:17 +01:00
18 lines
706 B
Go
18 lines
706 B
Go
export declare global {
|
|
interface Services<T = any> {
|
|
getById: (id: string) => Promise<ResponseWithData<T>>;
|
|
create: (form: T) => Promise<ResponseWithData<T>>;
|
|
updateById: (id: string, form: T) => Promise<ResponseWithData<T>>;
|
|
deleteById: (id: string) => Promise<Response>;
|
|
getList: (params?: ListRequestParams) => Promise<ResponseWithListData<T>>;
|
|
getAll: () => Promise<ResponseWithListData<T>>;
|
|
createList: (data: T[]) => Promise<ResponseWithListData<T>>;
|
|
updateList: (ids: string[], data: T, fields: string[]) => Promise<Response>;
|
|
deleteList: (ids: string[]) => Promise<Response>;
|
|
}
|
|
}
|
|
|
|
export * from './request';
|
|
export * from './spider';
|
|
export * from './git';
|