mirror of
https://github.com/faiztyanirh/clqms-shadcn-v1.git
synced 2026-04-22 17:19:52 +07:00
add dict account add dict site add dict discipline add dict department add dict workstation
18 lines
596 B
JavaScript
18 lines
596 B
JavaScript
import { API } from '$lib/config/api.js';
|
|
import { getById, searchWithParams, create, update } from '$lib/api/api-client';
|
|
|
|
export async function getWorkstations(searchQuery) {
|
|
return await searchWithParams(API.WORKSTATION, searchQuery)
|
|
}
|
|
|
|
export async function getWorkstation(searchQuery) {
|
|
return await getById(API.WORKSTATION, searchQuery)
|
|
}
|
|
|
|
export async function createWorkstation(newWorkstationForm) {
|
|
return await create(API.WORKSTATION, newWorkstationForm)
|
|
}
|
|
|
|
export async function editWorkstation(editWorkstationForm) {
|
|
return await update(API.WORKSTATION, editWorkstationForm)
|
|
} |