Files
jobslink-user-clent/api/newIndex.js
2024-02-02 10:24:54 +08:00

57 lines
1.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import {
request
} from '@/untils/AxiosUtils.js';
//轮播图
export const getSwiperList = (type) => request({
url: '/api/jobslink-api/desk/carousel/getCarouselList',
method: 'get'
});
//国家新政
export const getPolicyContent=(type, id)=>request({
url:'/api/jobslink-api/desk/article/getAllArticle',
method:'get',
params: {
type,
id
}
})
//常见问题
export const getQuestionList=(sidebarId, type, source, current, size)=>request({
url:'/api/jobslink-api/desk/sidebarContent/getSidebarContentList',
method:'get',
params: {
sidebarId,
type,
source,
current,
size,
}
})
export const questionDetail=(id)=>request({
url:'/api/jobslink-api/desk/content/getContentList',
method:'get',
params: {
id
}
})
//法律咨询 userId name 用户姓名telephone 手机号, type (1 法律咨询 2技能提升content 申请内容
export const submitApplication=(userId,name,telephone,type,content)=>request({
url:'/api/jobslink-api/desk/applContent/save',
method:'post',
data:{
userId,name,telephone,type,content
}
})
//我的申请
export const getApplContentList=()=>request({
url:'/api/jobslink-api/desk/applContent/getApplContentList',
method:'get',
})