import request from '@/router/axios';

export const reg = (inviteCode,companyName,companyTid, code, account, password) => request({
  // url: '/api/jobslink-api/tenant/front/company/account/regnew',
  url:'/api/jobslink-api/tenant/front/company/account/registerNew',
  method: 'post',
  headers: {'SCaptcha-Key': account, 'SCaptcha-Code': code},
  params: {inviteCode,companyName,companyTid, code, account, password}
});

export const sendValidate = (account, authType) => request({
  url: '/api/jobslink-api/system/front/account/reg/sendValidate',
  method: 'get',
  params: {account, authType}
});

/**注册时判断社会统一信用代码是否存在 */
export const regCheckIdentity=(identity)=>{
  return request({
    url:'/api/jobslink-api/tenant/front/tenant/check/identity',
    method:'get',
    params:{identity}
  })
}
