import request from '@/router/axios';
import { getToken } from '@/util/auth'

// export const insureGatherInfo = (params) => {
//   return request({
//     url: '/api/jobslink-api/payment/station/insure/gatherInfo',
//     method: 'get',
//     params: params
//   })
// }

// export const insureList = (params) => {
//   return request({
//     url: '/api/jobslink-api/payment/station/insure/list',
//     method: 'get',
//     params: params
//   })
// }

export const insureItem = (params) => {
  return request({
    url: '/api/jobslink-api/tenant/station/insureItem/list',
    method: 'get',
    params: params
  })
}

export const insureItemList = (params) => {
  return request({
    url: '/api/jobslink-api/tenant/station/insureItem/list/all',
    method: 'get',
    params: params
  })
}

export const downloadInsure=(policyNo, stime, etime)=>{
  return  `/api/jobslink-api/tenant/insure/item/downloadInsure?policyNo=${policyNo}&stime=${stime}&etime=${etime}&Jobslink-Auth=${getToken()}`
}
