import api from '../index'

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

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

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

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