import { axios } from '@/utils/request'

const api = {
  realIdentity: '/userRegister/informationMain'
}

export function getRealIdentityList (parameter) {
  return axios({
    url: api.realIdentity + '/list',
    method: 'get',
    params: parameter
  })
}
export function selectRealIdentityinfo (parameter) {
  return axios({
    url: api.realIdentity + '/selectRealIdentityinfo',
    method: 'get',
    data: parameter
  })
}

// export function saveRealIdentity (parameter) {
//   return axios({
//     url: api.realIdentity+(parameter.id > 0 ? '/update' : '/save'),
//     method: 'post',
//     data: parameter,
//     headers: {
//       'Content-Type': 'application/json;charset=UTF-8'
//     }
//   })
// }
export function verifySuccess (parameter) {
  return axios({
    url: api.realIdentity+'/verifySuccess',
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}
export function sysShiMi (parameter) {
  return axios({
    url: api.realIdentity+'/sysShiMi',
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

export function realIdentitySuccMsg (parameter) {
  return axios({
    url: api.realIdentity + '/realIdentitySuccMsg',
    method: 'post',
    data: parameter
  })
}

export function realIdentityErrorMsg (parameter) {
  return axios({
    url: api.realIdentity + (parameter.id > 0 ? '/realIdentityErrorMsg' : '/realIdentityErrorMsg'),
    method: 'post',
    data: parameter
  })
}
export function bohuiInfo (parameter) {
  return axios({
    url: api.realIdentity + '/bohuiInfo',
    method: 'post',
    data: parameter
  })
}
// export function delRealIdentity (parameter) {
//   return axios({
//     url: api.realIdentity + '/remove',
//     method: 'post',
//     params: parameter
//   })
// }

export const realIdentityExport = api.realIdentity + '/export'
