import request from "@/utils/request"

// 获取企业推荐信列表
export const getRecommendationPage = async (data) => {
	return request({
		url: '/app-api/flames/student/recommendation/list',
		method: 'POST',
		data,
		custom: {
			openEncryption: true,
			showLoading: false,
			auth: true
		}
	})
}

// 获取实习证书列表
export const getEnterpriseCertificateList = async (data) => {
	return request({
		url: '/app-api/flames/student/internship/certificate/list',
		method: 'POST',
		data,
		custom: {
			openEncryption: true,
			showLoading: false,
			auth: true
		}
	})
}

// 获取学校详情
export const getSchoolDetails = async (data) => {
	return request({
		url: '/app-api/flames/school/detail',
		method: 'POST',
		data,
		custom: {
			openEncryption: true,
			showLoading: false,
			auth: true
		}
	})
}

// 获得学生实习记录分页
export const getStudentPage = async (params) => {
	return request({
		url: '/app-api/menduner/system/student/page',
		method: 'GET',
		params,
		custom: {
			auth: true
		}
	})
}

// 获得学生实习报告列表
export const getStudentReportList = async (params) => {
	return request({
		url: '/app-api/menduner/system/student/get/report/list',
		method: 'GET',
		params,
		custom: {
			auth: true
		}
	})
}

// 保存学生实习报告
export const saveStudentReport = async (data) => {
	return request({
		url: '/app-api/menduner/system/student/report/save',
		method: 'POST',
		data,
		custom: {
			openEncryption: true,
			showLoading: false,
			auth: true
		}
	})
}

// 获取学生实习的企业列表
export const getStudentPracticeCompanyList = async () => {
	return request({
		url: '/app-api/menduner/system/student/record-enterprise/list',
		method: 'GET',
		custom: {
			auth: true
		}
	})
}

// 获取学校信息列表
export const getSchoolList = async (params) => {
	return request({
		url: '/app-api/menduner/system/school/info/list',
		params,
		method: 'GET',
		custom: {
			auth: false
		}
	})
}

// 根据学校id获取院系列表
export const getDepartmentListBySchoolId = async (params) => {
	return request({
		url: '/app-api/menduner/system/school/organization/list',
		params,
		method: 'GET',
		custom: {
			auth: false
		}
	})
}

// 获取专业列表
export const getMajorList = async (params) => {
	return request({
    url: '/app-api/menduner/system/major/list',
		params,
		method: 'GET',
		custom: {
			auth: false
		}
	})
}
