import request from '@/utils/httpRequest'

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

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

  save (inputForm) {
    return request({
      url: `/accountant/reimbursementBusinessTwo/addData`,
      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}
    })
  }

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