Commit f89a016a authored by xuezj's avatar xuezj

解决接口访问方式

parent 5f41acd9
import axios from '../service/http.service'
import {
baseApi,contractApi
sapi
} from '../config/env.config'
import qs from 'qs'
// 获取个人信息
export function getpersonMassage(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',
'X-Requested-With':'XMLHttpRequest'
}})
......@@ -14,21 +14,21 @@ export function getpersonMassage(params) {
// 用户退出
export function loginOUT() {
// params=qs.stringify(params)
return axios.get(`sapi/api/login/logout`,{headers: {
return axios.get(`${sapi}/api/login/logout`,{headers: {
'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest'
}})
}
//通过某一来源查询简历信息
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',
'X-Requested-With':'XMLHttpRequest'
}})
}
//通过渠道机简历信息
export function getChannelMassage() {
return axios.get(`sapi/api/resume/getSourceList`,{headers: {
return axios.get(`${sapi}/api/resume/getSourceList`,{headers: {
'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest'
}})
......
import axios from '../service/http.service'
import {
baseApi,contractApi
sapi
} from '../config/env.config'
import qs from 'qs'
// 更改约面信息
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;',
}})
}
// 重启面试
export function oppenInterview(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;',
}})
}
// 终止面试
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;',
}})
}
// 面试管理查询
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;',
'X-Requested-With':'XMLHttpRequest'
}})
}
//查看简历详情页
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'
}})
}
//面试官查询
export function Serchinterviewor() {
return axios.post(`sapi/api/interview/findInterviewerList`,{headers: {
return axios.post(`${sapi}/api/interview/findInterviewerList`,{headers: {
'Content-Type':'application/json;',
}})
}
//邀约人查询
export function SerchInvitationOwer() {
return axios.post(`sapi/api/interview/findInviterList`,{headers: {
return axios.post(`${sapi}/api/interview/findInviterList`,{headers: {
'Content-Type':'application/json;',
}})
}
//新增约面信息
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;',
}})
}
// 查询记录
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'
}})
}
// 变更状态
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'
}})
}
\ No newline at end of file
import axios from '../service/http.service'
import {
baseApi,contractApi
sapi
} from '../config/env.config'
import qs from 'qs'
//登录
export function login(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',
'X-Requested-With':'XMLHttpRequest'
}})
......@@ -14,7 +14,7 @@ export function login(params) {
//修改密码
export function updatePsd(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'
}})
}
\ No newline at end of file
import axios from '../service/http.service'
import {
baseApi,contractApi
sapi
} from '../config/env.config'
import qs from 'qs'
// 查询简历列表
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'
}})
}
// 下载简历(单条)
export function downloadone (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'
}})
}
// 搜索
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',
'X-Requested-With':'XMLHttpRequest'
}})
}
//查看简历详情页
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'
}})
}
// 简历pass
export function PASS (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'
}})
}
// 准备约面
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'
}})
}
// 备选
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'
}})
}
// 删除简历
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',
'X-Requested-With':'XMLHttpRequest'
}})
......@@ -58,46 +58,46 @@ export function deleteREsume (deleteallArr) {
// 单条下载简历
export function downloadOne (parmars) {
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'
}})
}
// 批量下载简历
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'
}})
}
// 导出列表
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: {
'Content-Type':'application/json'
}})
}
// 操作记录
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'
}})
}
//通过某一来源查询简历信息
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',
'X-Requested-With':'XMLHttpRequest'
}})
}
// 新增约面信息
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',
'X-Requested-With':'XMLHttpRequest'
}})
}
// 修改流程状态
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',
'X-Requested-With':'XMLHttpRequest'
}})
......
import axios from '../service/http.service'
import {
baseApi,contractApi
sapi
} from '../config/env.config'
import qs from 'qs'
//账号列表查询
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;',
}})
}
//添加账户
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',
"X-Requested-With":"XMLHttpRequest"
}})
}
//删除单条账户
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',
}})
}
//批量删除
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',
}})
}
//恢复初始密码
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',
}})
}
//查询邮箱列表
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',
}})
}
// 同步邮箱
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',
'X-Requested-With':'XMLHttpRequest'
}})
}
// 解绑邮箱
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',
'X-Requested-With':'XMLHttpRequest'
}})
}
// 修改邮箱并重新绑定
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',
'X-Requested-With':'XMLHttpRequest'
}})
}
// 批量解绑邮箱
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',
}})
}
// 获取二维码
export function getErcode(){
return axios.get(`sapi/qrCode/getInterviewQrcode`,{headers: {
return axios.get(`${sapi}/qrCode/getInterviewQrcode`,{headers: {
'Content-Type':'application/json',
}})
}
// //下载二维码
// export function downloadErcode(){
// return axios.get(`sapi/qrCode/downQrCode`,{headers: {
// return axios.get(`${sapi}/qrCode/downQrCode`,{headers: {
// 'Content-Type':'application/json',
// }})
// }
\ No newline at end of file
import axios from '../service/http.service'
import {
baseApi,contractApi
sapi
} from '../config/env.config'
import qs from 'qs'
// 提交应聘登记表
export function submitMassage(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',
'X-Requested-With':'XMLHttpRequest'
}})
......
import axios from '../service/http.service'
import {
baseApi,contractApi
sapi
} from '../config/env.config'
import qs from 'qs'
// 获取上传批次号
export function getuploadNumber() {
// 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',
'X-Requested-With':'XMLHttpRequest'
}})
}
//上传文件
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',
processData : false,
contentType : false,
......@@ -22,19 +22,19 @@ export function uploadfile(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',
}})
}
// 查询简历详情
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',
}})
}
// 查询简历详情
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',
}})
}
const protocol = window.location.protocol
const sapi = "//recruit-ai3.liangkebang.net"
let baseApi = ''
let contractApi = ''
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`
}
export { baseApi, contractApi }
\ No newline at end of file
export {
sapi
}
\ 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