fix(FE) : integrate api antrean table

This commit is contained in:
Yusron alamsyah
2026-02-03 13:53:54 +07:00
parent eeda789acd
commit 458e4c7158
20 changed files with 607 additions and 201 deletions

9
services/antrean.ts Normal file
View File

@@ -0,0 +1,9 @@
import api from './api'
export const getAntrianOperasi = async (params: { type?: string; limit?: number; offset?: number; status?: string | undefined; search?: string | undefined; type_id?: string | undefined } = {}) => {
const { type = 'all', limit = 10, offset = 0, status = undefined, search = undefined, type_id = undefined } = params
const response = await api.get('/antrian-operasi', {
params: { type, limit, offset, status, search, type_id }
})
return response.data
}

View File