You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bocai_supplyChain_pc/src/api/job.js

107 lines
2.5 KiB
JavaScript

4 years ago
import request from "../utils/request";
3 years ago
import qs from "qs";
let setqs = function (data) {
return qs.stringify(data);
};
4 years ago
// 获取职位列表
export function JobListApi(data) {
3 years ago
return request({
url: "/yishoudan/store/job/list",
method: "post",
// data: setqs(data),
// headers: { "Content-Type": "application/x-www-form-urlencoded" },
data: setqs(data),
});
4 years ago
}
// 获取职位详情
export function getJobDetailApi(data) {
3 years ago
return request({
url: `/yishoudan/store/job/getStoreJobDetailById?storeJobId=${data}`,
method: "get",
});
4 years ago
}
// 获取职位特色
export function getJobSpecialApi() {
3 years ago
return request({
url: `/yishoudan/labels/getListByTypeAndIndustry?type=90&industry=2`,
method: "get",
});
4 years ago
}
// 获取省份
export function getProvinceApi() {
3 years ago
return request({
url: `/yishoudan/city/getCityTree`,
method: "get",
});
4 years ago
}
// 获取市县
export function getCityApi(id) {
3 years ago
return request({
url: `/yishoudan/city/getCityByPid?pid=${id}`,
method: "get",
});
4 years ago
}
4 years ago
// 录单报名
export function recordBillApi(data) {
3 years ago
console.log(data);
return request({
url: "/yishoudan/user/apply/order/addByAgency",
method: "post",
data,
headers: { "Content-Type": "application/x-www-form-urlencoded" },
});
4 years ago
}
4 years ago
// 报名上传识别身份证信息
export function getIdCardInfoApi(data) {
3 years ago
return request({
url: "/yishoudan/commons/idCardOcrRecognize",
method: "post",
data,
headers: { "Content-Type": "multipart/form-data" },
});
4 years ago
}
4 years ago
// 获取渠道经理对应代理id
export function getProxyInfoApi(data) {
3 years ago
return request({
url: `/yishoudan/agency/getByPmdUserId?pmdUserId=${data}`,
});
4 years ago
}
// 根据关键字获取企业的列表
export function getStoreAliasApi(data) {
3 years ago
return request({
url: `/yishoudan/store/getAllStoreAliasName?keys=${data}`,
});
4 years ago
}
// 根据关键字获取企业的列表
export function getStoreJobApi(data) {
3 years ago
return request({
url: `/yishoudan/store/job/getJobNameByStoreId?storeId=${data}`,
});
4 years ago
}
// 根据岗位id获取政策
export function getPolicyByJobIdApi(data) {
3 years ago
return request({
url: `/yishoudan/store/job/getPolicyByStoreJobId?storeJobId=${data}`,
});
}
// 获取热门职位城市
export function getHotCityApi() {
3 years ago
return request({
url: `/yishoudan/city/getHotCity`,
});
}
// 获取热门职位城市
export function getCityWhichHasJobApi() {
3 years ago
return request({
url: `/yishoudan/city/getCityHasOnlineJob`,
});
}
// 获取热门企业
export function getHotStoreApi() {
3 years ago
return request({
url: `/yishoudan/store/getHotStore`,
});
}