24 lines
538 B
TypeScript
24 lines
538 B
TypeScript
import * as base from './_crud-base'
|
|
|
|
const path = '/api/v1/device'
|
|
|
|
export function create(data: any) {
|
|
return base.create(path, data, 'device')
|
|
}
|
|
|
|
export function getList(params: any = null) {
|
|
return base.getList(path, params, 'device')
|
|
}
|
|
|
|
export function getDetail(id: number | string) {
|
|
return base.getDetail(path, id, 'device')
|
|
}
|
|
|
|
export function update(id: number | string, data: any) {
|
|
return base.update(path, id, data, 'device')
|
|
}
|
|
|
|
export function remove(id: number | string) {
|
|
return base.remove(path, id, 'device')
|
|
}
|