import request from '@/utils/httpRequest'

export default class reimbursementSys {
  findList (params) {
    return request({
      url: '/accountant/reimbursementUser/findList',
      method: 'get',
      params: params
    })
  }

  save (inputForm) {
    return request({
      url: `/accountant/reimbursementUser/save`,
      method: 'post',
      data: inputForm
    })
  }

  delete (ids) {
    return request({
      url: '/accountant/reimbursementUser/delete',
      method: 'delete',
      params: {ids: ids}
    })
  }

  queryById (id) {
    return request({
      url: `/accountant/reimbursementUser/queryById`,
      method: 'get',
      params: {id: id}
    })
  }

  getReimbursementQuotaDay () {
    return request({
      url: `/accountant/reimbursementUser/getReimbursementQuotaDay`,
      method: 'get'
    })
  }

  findListByUserId (params) {
    return request({
      url: `/accountant/reimbursementUser/findListByUserId`,
      method: 'get',
      params: params
    })
  }

  exportTemplate () {
    return request({
      url: '/accountant/reimbursementUser/import/template',
      method: 'get',
      responseType: 'blob'
    })
  }

  importExcel (data) {
    return request({
      url: '/accountant/reimbursementUser/import',
      method: 'post',
      data: data
    })
  }

  initialize (params) {
    return request({
      url: '/accountant/reimbursementUser/initialize',
      method: 'post',
      params: params
    })
  }

  exportExcel (params) {
    return request({
      url: '/accountant/reimbursementUser/export',
      method: 'get',
      params: params,
      responseType: 'blob'
    })
  }
}
