Authored by 周少峰

code format

... ... @@ -55,4 +55,4 @@ exports.schoolList = (req, res, next) => {
studentsModel.getSchoolList(areaCode).then(result => {
res.json(result);
}).catch(next);
};
\ No newline at end of file
};
... ...
... ... @@ -14,7 +14,7 @@ const api = global.yoho.API;
exports.getVerifiedTotal = () => {
return api.get('', {method: 'app.student.verifiedStudentTotal'});
}
};
/**
* 获取学历层次列表
... ... @@ -23,7 +23,7 @@ exports.getVerifiedTotal = () => {
exports.getLevelList = () => {
return api.get('', {method: 'app.studentMarket.getEducationLevelList'});
}
};
/**
* 获取学校地区
... ... @@ -35,7 +35,7 @@ exports.getArea = () => {
};
return api.get('', finalParams);
}
};
/**
* 获取学校列表
... ... @@ -48,4 +48,4 @@ exports.getSchool = (areaCode) => {
};
return api.get('', finalParams);
}
};
... ...
... ... @@ -109,19 +109,19 @@ exports.getTestData = () => {
* 获取学校地区数据
* @return Object 接口数据
*/
exports.getSchoolArea = () => {
exports.getSchoolArea = () => {
return studentsApi.getArea().then(result => {
return result;
});
}
};
/**
* 根据地区码查询学校列表
* @params areaCode int 地区码
* @return Object 接口数据
*/
exports.getSchoolList = (areaCode) => {
exports.getSchoolList = (areaCode) => {
return studentsApi.getSchool(areaCode).then(result => {
return result;
});
}
};
... ...