import api from '../index'

export default {
  page: (data: {
    keyword?: string
    status?: string
    target_type?: string
    page?: number
    size?: number
  }) => api.post('magic-api/biz/failure/page', data),

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

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

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