import api from '../index'

export default {
  page: (data: {
    keyword?: string
    assets_status?: string
    category_id?: number
    location_id?: number
    assigned_to?: number
    supplier_id?: number
    model_id?: number
    page?: number
    size?: number
  }) => api.post('magic-api/asset/device/page', data),

  detail: (id: number) => api.get('magic-api/asset/device/detail', { params: { id } }),

  save: (data: any) => api.post('magic-api/asset/device/save', data),

  delete: (id: number) => api.post('magic-api/asset/device/delete', { id }),
}
