feat: enhance employee CRUD with search, filters, and security module

This commit is contained in:
2026-05-07 13:48:00 +08:00
parent c00db75c13
commit 2d56bc2889
13 changed files with 693 additions and 131 deletions

View File

@@ -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'
})
}