import http from '@/http/api.js'
import {
  bizConst
} from './biz/biz.js'
import {
  clientId,
  tenantId
} from '@/common/setting'

const getInformationList = (current, size, vo) => {
  return http.request({
    url: bizConst.basicPrefix + '/information_info/list',
    method: 'GET',
    header: {
      'Tenant-Id': tenantId
    },
    params: {
      current,
      size,
      ...vo
    },
  })
}

const getInformationDetail = (id) => {
  return http.request({
    url: bizConst.basicPrefix + '/information_info/detail',
    method: 'GET',
    header: {
      'Tenant-Id': tenantId
    },
    params: {
      id
    },
  })
}
export default {
  getInformationList,
  getInformationDetail
}