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 getPolicyDetail=(id)=>request({
	url:'/api/jobslink-api/policy/detail',
	method:'get',
	params: {
		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',

})
