Commit f89a016a authored by xuezj's avatar xuezj

解决接口访问方式

parent 5f41acd9
import axios from '../service/http.service' import axios from '../service/http.service'
import { import {
baseApi,contractApi sapi
} from '../config/env.config' } from '../config/env.config'
import qs from 'qs' import qs from 'qs'
// 获取个人信息 // 获取个人信息
export function getpersonMassage(params) { export function getpersonMassage(params) {
// params=qs.stringify(params) // params=qs.stringify(params)
return axios.get(`sapi/api/login/me`,params,{headers: { return axios.get(`${sapi}/api/login/me`,params,{headers: {
'Content-Type':'application/json', 'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest' 'X-Requested-With':'XMLHttpRequest'
}}) }})
...@@ -14,21 +14,21 @@ export function getpersonMassage(params) { ...@@ -14,21 +14,21 @@ export function getpersonMassage(params) {
// 用户退出 // 用户退出
export function loginOUT() { export function loginOUT() {
// params=qs.stringify(params) // params=qs.stringify(params)
return axios.get(`sapi/api/login/logout`,{headers: { return axios.get(`${sapi}/api/login/logout`,{headers: {
'Content-Type':'application/json', 'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest' 'X-Requested-With':'XMLHttpRequest'
}}) }})
} }
//通过某一来源查询简历信息 //通过某一来源查询简历信息
export function adoptOneSeeResumeList(parmars) { export function adoptOneSeeResumeList(parmars) {
return axios.post(`sapi/api/resume/findListBySource`,parmars,{headers: { return axios.post(`${sapi}/api/resume/findListBySource`,parmars,{headers: {
'Content-Type':'application/json', 'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest' 'X-Requested-With':'XMLHttpRequest'
}}) }})
} }
//通过渠道机简历信息 //通过渠道机简历信息
export function getChannelMassage() { export function getChannelMassage() {
return axios.get(`sapi/api/resume/getSourceList`,{headers: { return axios.get(`${sapi}/api/resume/getSourceList`,{headers: {
'Content-Type':'application/json', 'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest' 'X-Requested-With':'XMLHttpRequest'
}}) }})
......
import axios from '../service/http.service' import axios from '../service/http.service'
import { import {
baseApi,contractApi sapi
} from '../config/env.config' } from '../config/env.config'
import qs from 'qs' import qs from 'qs'
// 更改约面信息 // 更改约面信息
export function changeinterviewMassage(parmars) { export function changeinterviewMassage(parmars) {
return axios.post(`sapi/api/resumeInterview/update`,parmars,{headers: { return axios.post(`${sapi}/api/resumeInterview/update`,parmars,{headers: {
'Content-Type':'application/json;', 'Content-Type':'application/json;',
}}) }})
} }
// 重启面试 // 重启面试
export function oppenInterview(tid,tstatus) { export function oppenInterview(tid,tstatus) {
console.log(tid,tstatus) console.log(tid,tstatus)
return axios.post(`sapi/api/resumeFlow/reset/${tid}/${tstatus}`,{headers: { return axios.post(`${sapi}/api/resumeFlow/reset/${tid}/${tstatus}`,{headers: {
'Content-Type':'application/json;', 'Content-Type':'application/json;',
}}) }})
} }
// 终止面试 // 终止面试
export function SInterview(tid) { export function SInterview(tid) {
return axios.post(`sapi/api/resumeFlow/end/${tid}`,{headers: { return axios.post(`${sapi}/api/resumeFlow/end/${tid}`,{headers: {
'Content-Type':'application/json;', 'Content-Type':'application/json;',
}}) }})
} }
// 面试管理查询 // 面试管理查询
export function SerchList(parmars) { export function SerchList(parmars) {
return axios.post(`sapi/api/interview/findListByQueryVO`,parmars,{headers: { return axios.post(`${sapi}/api/interview/findListByQueryVO`,parmars,{headers: {
'Content-Type':'application/json;', 'Content-Type':'application/json;',
'X-Requested-With':'XMLHttpRequest' 'X-Requested-With':'XMLHttpRequest'
}}) }})
} }
//查看简历详情页 //查看简历详情页
export function seedetail (parmars) { export function seedetail (parmars) {
return axios.get(`sapi/api/html/get/${parmars.resumeId}`,{headers: { return axios.get(`${sapi}/api/html/get/${parmars.resumeId}`,{headers: {
'Content-Type':'application/json' 'Content-Type':'application/json'
}}) }})
} }
//面试官查询 //面试官查询
export function Serchinterviewor() { export function Serchinterviewor() {
return axios.post(`sapi/api/interview/findInterviewerList`,{headers: { return axios.post(`${sapi}/api/interview/findInterviewerList`,{headers: {
'Content-Type':'application/json;', 'Content-Type':'application/json;',
}}) }})
} }
//邀约人查询 //邀约人查询
export function SerchInvitationOwer() { export function SerchInvitationOwer() {
return axios.post(`sapi/api/interview/findInviterList`,{headers: { return axios.post(`${sapi}/api/interview/findInviterList`,{headers: {
'Content-Type':'application/json;', 'Content-Type':'application/json;',
}}) }})
} }
//新增约面信息 //新增约面信息
export function NewAddInterview(parmars) { export function NewAddInterview(parmars) {
return axios.post(`sapi/api/resumeInterview/add`,parmars,{headers: { return axios.post(`${sapi}/api/resumeInterview/add`,parmars,{headers: {
'Content-Type':'application/json;', 'Content-Type':'application/json;',
}}) }})
} }
// 查询记录 // 查询记录
export function recodeLIST (parmars) { export function recodeLIST (parmars) {
return axios.post(`sapi/api/resumeFlow/history/${parmars.resumeId}`,{headers: { return axios.post(`${sapi}/api/resumeFlow/history/${parmars.resumeId}`,{headers: {
'Content-Type':'application/json' 'Content-Type':'application/json'
}}) }})
} }
// 变更状态 // 变更状态
export function changestatus (tid,tstatus) { export function changestatus (tid,tstatus) {
return axios.post(`sapi/api/resumeFlow/uploadStatus/${tid}/${tstatus}`,{headers: { return axios.post(`${sapi}/api/resumeFlow/uploadStatus/${tid}/${tstatus}`,{headers: {
'Content-Type':'application/json' 'Content-Type':'application/json'
}}) }})
} }
\ No newline at end of file
import axios from '../service/http.service' import axios from '../service/http.service'
import { import {
baseApi,contractApi sapi
} from '../config/env.config' } from '../config/env.config'
import qs from 'qs' import qs from 'qs'
//登录 //登录
export function login(params) { export function login(params) {
// params=qs.stringify(params) // params=qs.stringify(params)
return axios.post(`sapi/api/login/doLogin`,params,{headers: { return axios.post(`${sapi}/api/login/doLogin`,params,{headers: {
'Content-Type':'application/json', 'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest' 'X-Requested-With':'XMLHttpRequest'
}}) }})
...@@ -14,7 +14,7 @@ export function login(params) { ...@@ -14,7 +14,7 @@ export function login(params) {
//修改密码 //修改密码
export function updatePsd(params) { export function updatePsd(params) {
// params=qs.stringify(params) // params=qs.stringify(params)
return axios.post(`sapi/api/login/modifyPassword`,params,{headers: { return axios.post(`${sapi}/api/login/modifyPassword`,params,{headers: {
'Content-Type':'application/json' 'Content-Type':'application/json'
}}) }})
} }
\ No newline at end of file
import axios from '../service/http.service' import axios from '../service/http.service'
import { import {
baseApi,contractApi sapi
} from '../config/env.config' } from '../config/env.config'
import qs from 'qs' import qs from 'qs'
// 查询简历列表 // 查询简历列表
export function serchList(parmars){ export function serchList(parmars){
return axios.post(`sapi/api/resume/findList`,parmars,{headers: { return axios.post(`${sapi}/api/resume/findList`,parmars,{headers: {
'Content-Type':'application/json' 'Content-Type':'application/json'
}}) }})
} }
// 下载简历(单条) // 下载简历(单条)
export function downloadone (parmars) { export function downloadone (parmars) {
parmars=qs.stringify(parmars) parmars=qs.stringify(parmars)
return axios.post(`sapi/api/resumeFile/download/formatted/one`,parmars,{headers: { return axios.post(`${sapi}/api/resumeFile/download/formatted/one`,parmars,{headers: {
'Content-Type':'application/x-www-form-urlencoded' 'Content-Type':'application/x-www-form-urlencoded'
}}) }})
} }
// 搜索 // 搜索
export function sousuoList (parmars) { export function sousuoList (parmars) {
return axios.post(`sapi/api/resume/findListByQueryVO`,parmars,{headers: { return axios.post(`${sapi}/api/resume/findListByQueryVO`,parmars,{headers: {
'Content-Type':'application/json', 'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest' 'X-Requested-With':'XMLHttpRequest'
}}) }})
} }
//查看简历详情页 //查看简历详情页
export function seedetail (parmars) { export function seedetail (parmars) {
return axios.get(`sapi/api/html/get/${parmars.resumeId}`,{headers: { return axios.get(`${sapi}/api/html/get/${parmars.resumeId}`,{headers: {
'Content-Type':'application/json' 'Content-Type':'application/json'
}}) }})
} }
// 简历pass // 简历pass
export function PASS (parmars) { export function PASS (parmars) {
console.log(parmars) console.log(parmars)
return axios.post(`sapi/api/resumeFlow/uploadStatus/${parmars.id}/${parmars.status}`,'',{headers: { return axios.post(`${sapi}/api/resumeFlow/uploadStatus/${parmars.id}/${parmars.status}`,'',{headers: {
'Content-Type':'application/json' 'Content-Type':'application/json'
}}) }})
} }
// 准备约面 // 准备约面
export function TOSEE (parmars) { export function TOSEE (parmars) {
return axios.post(`sapi/api/resumeFlow/uploadStatus/${parmars.id}/${parmars.status}`,'',{headers: { return axios.post(`${sapi}/api/resumeFlow/uploadStatus/${parmars.id}/${parmars.status}`,'',{headers: {
'Content-Type':'application/json' 'Content-Type':'application/json'
}}) }})
} }
// 备选 // 备选
export function OPTION (parmars) { export function OPTION (parmars) {
return axios.post(`sapi/api/resumeFlow/uploadStatus/${parmars.id}/${parmars.status}`,'',{headers: { return axios.post(`${sapi}/api/resumeFlow/uploadStatus/${parmars.id}/${parmars.status}`,'',{headers: {
'Content-Type':'application/json' 'Content-Type':'application/json'
}}) }})
} }
// 删除简历 // 删除简历
export function deleteREsume (deleteallArr) { export function deleteREsume (deleteallArr) {
return axios.post(`sapi/api/resume/delete`,JSON.stringify(deleteallArr),{headers: { return axios.post(`${sapi}/api/resume/delete`,JSON.stringify(deleteallArr),{headers: {
'Content-Type':'application/json', 'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest' 'X-Requested-With':'XMLHttpRequest'
}}) }})
...@@ -58,46 +58,46 @@ export function deleteREsume (deleteallArr) { ...@@ -58,46 +58,46 @@ export function deleteREsume (deleteallArr) {
// 单条下载简历 // 单条下载简历
export function downloadOne (parmars) { export function downloadOne (parmars) {
console.log(parmars.resumeId) console.log(parmars.resumeId)
return axios.get(`sapi/api/resume/download/formatted/one?resumeId=${parmars.resumeId}`,{headers: { return axios.get(`${sapi}/api/resume/download/formatted/one?resumeId=${parmars.resumeId}`,{headers: {
// 'Content-Type':'application/x-www-form-urlencoded' // 'Content-Type':'application/x-www-form-urlencoded'
}}) }})
} }
// 批量下载简历 // 批量下载简历
export function downloadALL () { export function downloadALL () {
return axios.get(`sapi/api/resumeFile/download/formatted/compress`,{headers: { return axios.get(`${sapi}/api/resumeFile/download/formatted/compress`,{headers: {
'Content-Type':'application/x-www-form-urlencoded' 'Content-Type':'application/x-www-form-urlencoded'
}}) }})
} }
// 导出列表 // 导出列表
export function exportLIST (parmars) { export function exportLIST (parmars) {
return axios.get(`sapi/api/excel/output?optSource=${parmars.optSource}&keywordString=${parmars.keywordString}&company=${parmars.company}&ownerSex=${parmars.ownerSex}&highestDegreeNum=${parmars.highestDegreeNum}&flowStatusList=${parmars.flowStatusList}&ownerWorkYears1=${parmars.ownerWorkYears1}&ownerWorkYears2=${parmars.ownerWorkYears2}`, return axios.get(`${sapi}/api/excel/output?optSource=${parmars.optSource}&keywordString=${parmars.keywordString}&company=${parmars.company}&ownerSex=${parmars.ownerSex}&highestDegreeNum=${parmars.highestDegreeNum}&flowStatusList=${parmars.flowStatusList}&ownerWorkYears1=${parmars.ownerWorkYears1}&ownerWorkYears2=${parmars.ownerWorkYears2}`,
{headers: { {headers: {
'Content-Type':'application/json' 'Content-Type':'application/json'
}}) }})
} }
// 操作记录 // 操作记录
export function recodeLIST (parmars) { export function recodeLIST (parmars) {
return axios.post(`sapi/api/resumeFlow/history/${parmars.resumeId}`,{headers: { return axios.post(`${sapi}/api/resumeFlow/history/${parmars.resumeId}`,{headers: {
'Content-Type':'application/json' 'Content-Type':'application/json'
}}) }})
} }
//通过某一来源查询简历信息 //通过某一来源查询简历信息
export function adoptOneSeeResumeList(parmars) { export function adoptOneSeeResumeList(parmars) {
return axios.post(`sapi/api/resume/findListBySource`,parmars,{headers: { return axios.post(`${sapi}/api/resume/findListBySource`,parmars,{headers: {
'Content-Type':'application/json', 'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest' 'X-Requested-With':'XMLHttpRequest'
}}) }})
} }
// 新增约面信息 // 新增约面信息
export function addinterview(parmars) { export function addinterview(parmars) {
return axios.post(`sapi/api/resumeInterview/add`,parmars,{headers: { return axios.post(`${sapi}/api/resumeInterview/add`,parmars,{headers: {
'Content-Type':'application/json', 'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest' 'X-Requested-With':'XMLHttpRequest'
}}) }})
} }
// 修改流程状态 // 修改流程状态
export function updatastatus(parmars) { export function updatastatus(parmars) {
return axios.post(`sapi/api/resumeFlow/uploadStatus/${parmars.id}/${parmars.status}`,{headers: { return axios.post(`${sapi}/api/resumeFlow/uploadStatus/${parmars.id}/${parmars.status}`,{headers: {
'Content-Type':'application/json', 'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest' 'X-Requested-With':'XMLHttpRequest'
}}) }})
......
import axios from '../service/http.service' import axios from '../service/http.service'
import { import {
baseApi,contractApi sapi
} from '../config/env.config' } from '../config/env.config'
import qs from 'qs' import qs from 'qs'
//账号列表查询 //账号列表查询
export function queryaccountList(params) { export function queryaccountList(params) {
return axios.post(`sapi/api/user/findList`,params,{headers: { return axios.post(`${sapi}/api/user/findList`,params,{headers: {
'Content-Type':'application/json;', 'Content-Type':'application/json;',
}}) }})
} }
//添加账户 //添加账户
export function addAccount (params) { export function addAccount (params) {
return axios.post(`sapi/api/user/add`,params,{headers: { return axios.post(`${sapi}/api/user/add`,params,{headers: {
'Content-Type':'application/json', 'Content-Type':'application/json',
"X-Requested-With":"XMLHttpRequest" "X-Requested-With":"XMLHttpRequest"
}}) }})
} }
//删除单条账户 //删除单条账户
export function Delateaccount(parmars){ export function Delateaccount(parmars){
return axios.get(`sapi/api/user/delete/${parmars.id}`,{headers: { return axios.get(`${sapi}/api/user/delete/${parmars.id}`,{headers: {
'Content-Type':'application/json', 'Content-Type':'application/json',
}}) }})
} }
//批量删除 //批量删除
export function delateAllAccount(DelateARR){ export function delateAllAccount(DelateARR){
return axios.post(`sapi//api/user/delete`,JSON.stringify(DelateARR),{headers: { return axios.post(`${sapi}//api/user/delete`,JSON.stringify(DelateARR),{headers: {
'Content-Type':'application/json', 'Content-Type':'application/json',
}}) }})
} }
//恢复初始密码 //恢复初始密码
export function recoveryPassword(parmars){ export function recoveryPassword(parmars){
return axios.post(`sapi/api/user/initial/${parmars.id}`,{headers: { return axios.post(`${sapi}/api/user/initial/${parmars.id}`,{headers: {
'Content-Type':'application/json', 'Content-Type':'application/json',
}}) }})
} }
//查询邮箱列表 //查询邮箱列表
export function queryemailList(parmars){ export function queryemailList(parmars){
return axios.post(`sapi/api/email/list`,parmars,{headers: { return axios.post(`${sapi}/api/email/list`,parmars,{headers: {
'Content-Type':'application/json', 'Content-Type':'application/json',
}}) }})
} }
// 同步邮箱 // 同步邮箱
export function Synchronization(parmars){ export function Synchronization(parmars){
return axios.post(`sapi/api/email/bindAndSync`,parmars,{headers: { return axios.post(`${sapi}/api/email/bindAndSync`,parmars,{headers: {
'Content-Type':'application/json', 'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest' 'X-Requested-With':'XMLHttpRequest'
}}) }})
} }
// 解绑邮箱 // 解绑邮箱
export function jiebangEmail(id){ export function jiebangEmail(id){
return axios.post(`sapi/api/email/unbind/${id}`,{headers: { return axios.post(`${sapi}/api/email/unbind/${id}`,{headers: {
'Content-Type':'application/x-www-form-urlencoded', 'Content-Type':'application/x-www-form-urlencoded',
'X-Requested-With':'XMLHttpRequest' 'X-Requested-With':'XMLHttpRequest'
}}) }})
} }
// 修改邮箱并重新绑定 // 修改邮箱并重新绑定
export function updateemailTWO(parmars){ export function updateemailTWO(parmars){
return axios.post(`sapi/api/email/modify`,parmars,{headers: { return axios.post(`${sapi}/api/email/modify`,parmars,{headers: {
'Content-Type':'application/json', 'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest' 'X-Requested-With':'XMLHttpRequest'
}}) }})
} }
// 批量解绑邮箱 // 批量解绑邮箱
export function UntyingAll(UntyingAllARR){ export function UntyingAll(UntyingAllARR){
return axios.post(`sapi/api/email/unbind/batch`,JSON.stringify(UntyingAllARR),{headers: { return axios.post(`${sapi}/api/email/unbind/batch`,JSON.stringify(UntyingAllARR),{headers: {
'Content-Type':'application/json', 'Content-Type':'application/json',
}}) }})
} }
// 获取二维码 // 获取二维码
export function getErcode(){ export function getErcode(){
return axios.get(`sapi/qrCode/getInterviewQrcode`,{headers: { return axios.get(`${sapi}/qrCode/getInterviewQrcode`,{headers: {
'Content-Type':'application/json', 'Content-Type':'application/json',
}}) }})
} }
// //下载二维码 // //下载二维码
// export function downloadErcode(){ // export function downloadErcode(){
// return axios.get(`sapi/qrCode/downQrCode`,{headers: { // return axios.get(`${sapi}/qrCode/downQrCode`,{headers: {
// 'Content-Type':'application/json', // 'Content-Type':'application/json',
// }}) // }})
// } // }
\ No newline at end of file
import axios from '../service/http.service' import axios from '../service/http.service'
import { import {
baseApi,contractApi sapi
} from '../config/env.config' } from '../config/env.config'
import qs from 'qs' import qs from 'qs'
// 提交应聘登记表 // 提交应聘登记表
export function submitMassage(params) { export function submitMassage(params) {
// params=qs.stringify(params) // params=qs.stringify(params)
return axios.post(`sapi/api/interview/arrive`,params,{headers: { return axios.post(`${sapi}/api/interview/arrive`,params,{headers: {
'Content-Type':'application/json', 'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest' 'X-Requested-With':'XMLHttpRequest'
}}) }})
......
import axios from '../service/http.service' import axios from '../service/http.service'
import { import {
baseApi,contractApi sapi
} from '../config/env.config' } from '../config/env.config'
import qs from 'qs' import qs from 'qs'
// 获取上传批次号 // 获取上传批次号
export function getuploadNumber() { export function getuploadNumber() {
// params=qs.stringify(params) // params=qs.stringify(params)
return axios.get(`sapi/api/resume/upload/batchNum`,{headers: { return axios.get(`${sapi}/api/resume/upload/batchNum`,{headers: {
'Content-Type':'application/json', 'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest' 'X-Requested-With':'XMLHttpRequest'
}}) }})
} }
//上传文件 //上传文件
export function uploadfile(parmars) { export function uploadfile(parmars) {
return axios.post(`sapi/api/resume/upload`,parmars,{headers: { return axios.post(`${sapi}/api/resume/upload`,parmars,{headers: {
// 'Content-Type':'multipart/form-data', // 'Content-Type':'multipart/form-data',
processData : false, processData : false,
contentType : false, contentType : false,
...@@ -22,19 +22,19 @@ export function uploadfile(parmars) { ...@@ -22,19 +22,19 @@ export function uploadfile(parmars) {
} }
// 查询上传列表记录 // 查询上传列表记录
export function serchList(parmars) { export function serchList(parmars) {
return axios.post(`sapi/api/resume/upload/history`,parmars,{headers: { return axios.post(`${sapi}/api/resume/upload/history`,parmars,{headers: {
'Content-Type':'application/json', 'Content-Type':'application/json',
}}) }})
} }
// 查询简历详情 // 查询简历详情
export function serchRESUMEdetail(parmars) { export function serchRESUMEdetail(parmars) {
return axios.get(`sapi/api/html/get/${parmars.resumeId}`,{headers: { return axios.get(`${sapi}/api/html/get/${parmars.resumeId}`,{headers: {
'Content-Type':'application/json', 'Content-Type':'application/json',
}}) }})
} }
// 查询简历详情 // 查询简历详情
export function deleteREsumeUPLOad(deleteallArr) { export function deleteREsumeUPLOad(deleteallArr) {
return axios.post(`sapi/api/resume/delete`,JSON.stringify(deleteallArr),{headers: { return axios.post(`${sapi}/api/resume/delete`,JSON.stringify(deleteallArr),{headers: {
'Content-Type':'application/json', 'Content-Type':'application/json',
}}) }})
} }
const protocol = window.location.protocol const sapi = "//recruit-ai3.liangkebang.net"
let baseApi = '' export {
let contractApi = '' sapi
if(process.env.NODE_ENV === 'production'){
baseApi ='http://credit.xyqb.com'
contractApi ='http://pdf.quantgroup.cn'
}else{
baseApi ='http://recruit-ai3.liangkebang.net'
contractApi = `http://recruit-ai3.liangkebang.net`
} }
\ No newline at end of file
export { baseApi, contractApi }
\ No newline at end of file
const sapi = '//api.stantoo.com'
export {
sapi
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment