fix(FE) : integrate api antrean table
This commit is contained in:
9
services/antrean.ts
Normal file
9
services/antrean.ts
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user