import api from '../index'

export default {
  page: (data: {
    keyword?: string
    category_id?: number
    manufacturer_id?: number
    page?: number
    size?: number
  }) => api.post('magic-api/asset/accessory/page', data),

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

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

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