import api from '../index'

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

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

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

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