mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-23 23:05:46 +00:00
feat: create Employee API Service
This commit is contained in:
@@ -0,0 +1,18 @@
|
|||||||
|
import { BaseApiService } from '@/services/api/base';
|
||||||
|
import {
|
||||||
|
CreateEmployeePayload,
|
||||||
|
Employee,
|
||||||
|
UpdateEmployeePayload,
|
||||||
|
} from '@/types/api/daily-checklist/employee';
|
||||||
|
|
||||||
|
export class EmployeeApiService extends BaseApiService<
|
||||||
|
Employee,
|
||||||
|
CreateEmployeePayload,
|
||||||
|
UpdateEmployeePayload
|
||||||
|
> {
|
||||||
|
constructor(basePath: string = '/master-data/employees') {
|
||||||
|
super(basePath);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export const EmployeeApi = new EmployeeApiService('/master-data/employees');
|
||||||
Reference in New Issue
Block a user