feat: enhance employee CRUD with search, filters, and security module
This commit is contained in:
@@ -22,3 +22,16 @@ export function fetchEmployeeMeta() {
|
||||
export function fetchEmployeeDetail(employeeId) {
|
||||
return apiRequest(`/employees/${employeeId}`)
|
||||
}
|
||||
|
||||
export function updateEmployee(employeeId, payload) {
|
||||
return apiRequest(`/employees/${employeeId}`, {
|
||||
method: 'PATCH',
|
||||
body: JSON.stringify(payload)
|
||||
})
|
||||
}
|
||||
|
||||
export function disableEmployee(employeeId) {
|
||||
return apiRequest(`/employees/${employeeId}/disable`, {
|
||||
method: 'POST'
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user