import request from '@/utils/httpRequest'

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

  findListByBusinessCodeId (id) {
    return request({
      url: '/project/reimbursementBusiness/findListByBusinessCodeId',
      method: 'get',
      params: {id: id}
    })
  }

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

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

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

  getBusinessById (id) {
    return request({
      url: `/project/reimbursementBusiness/getBusinessById`,
      method: 'get',
      params: {id: id}
    })
  }
  yearList (params) {
    return request({
      url: '/project/reimbursementBusiness/getYearList',
      method: 'get',
      params: params
    })
  }
}
