import { cancelEnrollmentApi, enrollmentRequireApi, getRequirementDetailApi, getRequirementsApi } from "../hwRequirement";

/**
 * 报名需求
 * @param parma 
 */
export const enrollmentRequireImpl = (parma: enrollmentRequireDataType) => enrollmentRequireApi(parma).then(res => {
	const data = (<responseOptionsType>res)
	return data
})
/**
 * 取消报名
 * @param parma 
 */
export const cancelEnrollmentImpl = (parma: cancelEnrollmentDataType) => cancelEnrollmentApi(parma).then(res => {
	const data = (<responseOptionsType>res)
	return data
})

/**
 * 获取需求列表
 * @param param 
 */
export const getRequirementsImpl = (param: getRequirementsData) => getRequirementsApi(param).then(res => {
	const data = (<responseOptionsType>res)
	return data
})

/**
 * 获取需求详情
 * @param param 
 */
export const getRequirementDetailImpl = (param: getRequirementDetailDataType) => getRequirementDetailApi(param).then(res => {
	const data = (<responseOptionsType>res)
	return data
})