import api from '../index'

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

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

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

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