155 lines
5.3 KiB
PHP
155 lines
5.3 KiB
PHP
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
|
// +----------------------------------------------------------------------
|
|
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
|
|
// +----------------------------------------------------------------------
|
|
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
|
// +----------------------------------------------------------------------
|
|
// | Author: liu21st <liu21st@gmail.com>
|
|
// +----------------------------------------------------------------------
|
|
|
|
//非小程序登录
|
|
Route::post('api/appLogin', 'api/Login/appLogin');
|
|
|
|
//修改用户信息接口
|
|
Route::post('api/modifyUser', 'api/Login/modifyUserInfo');
|
|
|
|
//查询用户权限
|
|
Route::post('api/checkAuth', 'api/UserInfo/checkUserAuth');
|
|
|
|
//短信验证码
|
|
Route::post('api/sendCode', 'api/Login/sendMobileCode');
|
|
|
|
//区域调用接口
|
|
Route::get('api/getArea', 'api/Info/getAreaInfo');
|
|
|
|
//获取所有院校类型
|
|
Route::get('api/getSchoolType', 'api/Info/getSchoolTypeInfo');
|
|
|
|
//获取省份批次
|
|
Route::get('api/getProvinceBatch', 'api/Info/getBatchsByProvince');
|
|
|
|
//根据省份获取科目相关数据
|
|
Route::get('api/provinceSubject', 'api/Info/getProSubject');
|
|
|
|
//获取省份分数排名
|
|
Route::get('api/proScoreRank', 'api/Info/getUserProRank');
|
|
|
|
//返回用户查询的学校
|
|
Route::post('api/getSchools', 'api/SchoolChoice/getSchoolBy');
|
|
//根据条件获取院校数量
|
|
Route::post('api/getSchCount', 'api/SchoolChoice/getSchoolCount');
|
|
//获取商品价格
|
|
Route::get('api/getProduct', 'api/Product/getProductPrice');
|
|
//创建订单
|
|
Route::post('api/createOrder', 'api/Order/placeOrder');
|
|
|
|
//订单支付
|
|
Route::post('api/payOrder', 'api/Pay/prePayOrder');
|
|
|
|
//查询订单是否支付成功
|
|
Route::post('api/checkPay', 'api/Order/checkOrderPay');
|
|
|
|
//支付回调
|
|
Route::post('api/gkNotify', 'api/Pay/receiveNotify');
|
|
|
|
//个人中心订单接口
|
|
Route::post('api/myOrders', 'api/UserInfo/myOrderList');
|
|
|
|
//上传图片
|
|
Route::post('api/uploads', 'api/Info/uploadImage');
|
|
|
|
//联系客服类型
|
|
Route::get('api/getMesType', 'api/userInfo/getMessageType');
|
|
|
|
//用户留言
|
|
Route::post('api/addMessage', 'api/userInfo/addUserMessage');
|
|
//获取用户工单
|
|
Route::post('api/getUserMes', 'api/userInfo/getUserMessage');
|
|
//添加收藏院校
|
|
Route::post('api/addUserCollectSch', 'api/UserCollect/addCollectSch');
|
|
|
|
//添加收藏专业
|
|
Route::post('api/addUserCollectMajor', 'api/UserCollect/addCollectMajor');
|
|
|
|
//移除收藏的院校
|
|
Route::post('api/delUserCollect', 'api/UserCollect/delMyCollectSchool');
|
|
|
|
//移除收藏的专业
|
|
Route::post('api/delUserMajor', 'api/UserCollect/delMyCollectMajor');
|
|
|
|
//我收藏的院校
|
|
Route::post('api/myCollectSch', 'api/UserCollect/getMyCollectSchool');
|
|
|
|
//我收藏的专业
|
|
Route::post('api/myCollectMajor', 'api/UserCollect/getMyCollectMajor');
|
|
|
|
//搜索专业下拉
|
|
Route::get('api/getPullDown', 'api/Major/getSearchAbout');
|
|
//获取默认专业
|
|
Route::post('api/defaultMajor', 'api/Major/getDefaultMajor');
|
|
//专业搜索
|
|
Route::post('api/getMajorAbout', 'api/Major/getMajorInfo');
|
|
|
|
//查询专业的多个学校
|
|
Route::post('api/majorSchool', 'api/Major/getMajorSchool');
|
|
|
|
//查询单个学校的多个专业
|
|
Route::post('api/getSchMajor', 'api/SchoolChoice/getSchMajorBy');
|
|
|
|
//查询院校往年招生情况
|
|
Route::post('api/getSchEnroll', 'api/SchoolChoice/getSchEnrollByYear');
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////////////////////
|
|
//查询分数段
|
|
Route::post('api/getScoreGrade', 'api/UserCollect/getScoreGrade');
|
|
//新高考
|
|
//查询新高考专业
|
|
Route::post('api/getNewMajor', 'api/NewTypeMajor/getNewMajor');
|
|
//根据条件获取新高考专业总数
|
|
Route::post('api/getNewMajorCount', 'api/NewTypeMajor/getNewMajorCount');
|
|
//查询新高考院校
|
|
Route::post('api/getMajorSch', 'api/NewTypeMajor/getNewMajorSchool');
|
|
//根据条件获取新高考院校总数
|
|
Route::post('api/getNewSchCount', 'api/NewTypeMajor/getNewSchoolCount');
|
|
/*
|
|
* 新高收藏专业模块
|
|
* */
|
|
//新高考添加收藏专业
|
|
Route::post('api/addUserNewMajor', 'api/UserCollect/addNewMajor');
|
|
//新高考移除收藏的专业
|
|
Route::post('api/delNewMajor', 'api/UserCollect/delNewMajor');
|
|
//新高考我收藏的专业
|
|
Route::post('api/myNewMajor', 'api/UserCollect/getNewMajor');
|
|
|
|
/*
|
|
* 新高收藏院校模块
|
|
* */
|
|
//新高考添加收藏院校
|
|
Route::post('api/addUserNewSch', 'api/UserCollect/addNewSch');
|
|
//新高考移除收藏的院校
|
|
Route::post('api/delNewSch', 'api/UserCollect/delNewSch');
|
|
//新高考我收藏的院校
|
|
Route::post('api/myNewSch', 'api/UserCollect/getNewSch');
|
|
|
|
//查询新高考院校的
|
|
Route::post('api/getNewSchMajor', 'api/NewTypeMajor/getNewSchMajor');
|
|
|
|
|
|
//支付宝支付同步回调url
|
|
Route::get('api/aliPayReturn', 'api/Pay/alipayReturnUrl');
|
|
//支付宝支付异步回调url
|
|
Route::post('api/aliPayNotify', 'api/Pay/alipayNotifyUrl');
|
|
|
|
//查询新高考向本省招生的专业学校
|
|
Route::post('api/newMajorSch', 'api/Major/getNewMajorSch');
|
|
|
|
|
|
//霍兰德测试
|
|
Route::get('api/myPart', 'api/Protest/getPart');//测试分类
|
|
Route::post('api/myPaper', 'api/Protest/getPaper');//试卷
|
|
Route::post('api/myResult', 'api/Protest/getResult');//结果
|
|
Route::post('api/myParentLevel', 'api/Protest/getParentLevel');//父级专业
|
|
Route::post('api/mySonLevel', 'api/Protest/getSonLevel');//子级专业
|