import api from '../index'

export default {
  page: (data: { keyword?: string; page?: number; size?: number }) => api.post('magic-api/base/manufacturer/page', data),

  list: (data?: { keyword?: string }) => api.get('magic-api/base/manufacturer/list', { params: data }),

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

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

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