import api from '../index'

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

  list: () => api.get('magic-api/base/supplier/list'),

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

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

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