import request from '@/utils/httpRequest'

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

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

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

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

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

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

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

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

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