route.php 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: liu21st <liu21st@gmail.com>
  10. // +----------------------------------------------------------------------
  11. use think\Route;
  12. Route::group('api', function () {
  13. Route::get('index', 'api/Index/index');
  14. Route::get('geocoder', 'api/Index/geocoder');
  15. Route::post('MiniLink', 'api/Index/Minilink');
  16. Route::any('Wechat/serve','api/Wechat/serve');
  17. Route::any('wechat/notify/:cid','api/Wechat/notify');
  18. Route::any('routine/notify/:cid','api/routine/notify');
  19. Route::post('register', 'api/User/register');
  20. Route::post('login', 'api/User/login');
  21. Route::post('logout', 'api/User/logout');
  22. Route::post('reset', 'api/User/resetpwd');
  23. Route::post('captcha', 'api/Sms/send');
  24. Route::post('upload', 'api/Common/upload');
  25. Route::get('userinfo', 'api/User/userinfo');
  26. Route::group('user', function () {
  27. Route::get('/', 'api/User/index');
  28. Route::post('profile', 'api/User/profile');
  29. Route::get('children/num', 'api/User/children_num');
  30. Route::get('children/:id', 'api/User/children');
  31. Route::get('spread_children/:id', 'api/User/spread_children');
  32. Route::post('setuser', 'api/User/setuser'); //会员申请
  33. });
  34. //首页
  35. Route::group('index', function () {
  36. Route::get('company', 'api/Index/company');
  37. Route::get('wxconfig', 'api/Index/wxconfig');
  38. Route::get('test', 'api/Index/test');
  39. });
  40. //微信
  41. Route::group('wechat', function () {
  42. Route::get('auth', 'api/wechat/auth');
  43. Route::get('wxconfig', 'api/Index/wxconfig');
  44. Route::get('signing', 'api/wechat/signing');
  45. Route::get('delete_signing', 'api/wechat/delete_signing');
  46. Route::get('test', 'api/wechat/test');
  47. Route::get('signing_plan', 'api/wechat/signing_plan');
  48. Route::get('user_signing', 'api/wechat/user_signing');
  49. });
  50. Route::group('mini', function () {
  51. Route::post('auth', 'api/MiniProgram/mp_auth');
  52. Route::get('wxconfig', 'api/Index/wxconfig');
  53. });
  54. //机构
  55. Route::group('institution', function () {
  56. Route::get('aed', 'api/institution/ade');
  57. Route::get('institution', 'api/institution/insti');
  58. Route::get('station', 'api/institution/station');
  59. });
  60. //文章
  61. Route::group('Article', function () {
  62. Route::get('ify', 'api/Article/ify');
  63. Route::get('lst', 'api/Article/lst');
  64. Route::get('view', 'api/Article/view');
  65. });
  66. //救在身边
  67. Route::group('Rescue', function () {
  68. Route::get('index', 'api/Rescue/index'); //救授列表
  69. Route::post('create', 'api/Rescue/create'); //救授申请
  70. Route::get('applylst', 'api/Rescue/applylst'); //申请记录
  71. Route::post('sos', 'api/Rescue/sos_create'); //求救申请
  72. Route::get('lst', 'api/Rescue/lst'); //求救/救授记录
  73. Route::post('setstatus', 'api/Rescue/setstatus'); //救授处理
  74. Route::get('sos_del','api/Rescue/sos_del');
  75. });
  76. //爱心捐款
  77. Route::group('lave', function () {
  78. Route::post('create', 'api/lave/create');
  79. Route::post('create_sign', 'api/lave/createSign'); //支付签约
  80. Route::get('delete_sign', 'api/lave/deleteSign'); //解除签约
  81. Route::get('ify', 'api/lave/ify');
  82. Route::get('lst', 'api/lave/lst');
  83. Route::get('mylst', 'api/lave/mylst');
  84. Route::get('pay', 'api/lave/pay');
  85. Route::get('pay_sign', 'api/lave/paySign'); //签约订单支付
  86. Route::get('pay_pap', 'api/lave/payPap'); //申请扣款
  87. Route::get('query_sign', 'api/lave/querySign'); //查询签约
  88. Route::get('cs_query_sign', 'api/lave/csquerySign'); //测试查询签约
  89. Route::get('plan_lst', 'api/lave/plan_lst'); //模版列表
  90. Route::get('plan_info', 'api/lave/plan_read'); //模版列表
  91. Route::get('user_lst', 'api/lave/user_plan_lst'); //用户签约模版列表
  92. Route::get('user_info', 'api/lave/user_record_info'); //用户详情详情
  93. });
  94. //帮扶
  95. Route::group('help', function () {
  96. Route::get('index', 'api/help/index');
  97. Route::get('view', 'api/help/view');
  98. Route::post('apply', 'api/help/apply');
  99. Route::get('ify', 'api/help/ify');
  100. Route::get('applylst', 'api/help/lst');
  101. Route::post("userapply",'api/help/help_user_apply'); //项目帮扶人申请
  102. Route::get("userapplylst",'api/help/user_apply_lst'); //项目帮扶人申请
  103. });
  104. //物资
  105. Route::group('project', function () {
  106. Route::get('list', 'api/project/lst');//捐赠活动列表
  107. Route::get('info', 'api/project/info');//捐赠详情
  108. Route::post('myorder', 'api/project/myorder');//我的捐赠
  109. Route::post('all_order', 'api/project/all_order');//活动捐赠列表
  110. Route::post('order_create', 'api/project/order_create');//创建捐赠
  111. Route::post('create_user', 'api/project/create_user');//创建用户
  112. Route::get('user_list', 'api/project/user_list');//我的所有用户
  113. Route::get('Donation_info', 'api/project/Donation_info');//系统所有物资
  114. Route::post('bill', 'api/project/bill');//所有状态记录
  115. Route::get('order_info', 'api/project/order_info');//订单详情
  116. });
  117. //培训
  118. Route::group('training', function () {
  119. Route::get('lst', 'api/training/lst');
  120. Route::get('view', 'api/training/view');
  121. Route::post('apply', 'api/training/apply');
  122. Route::get('mylst', 'api/training/mylst');
  123. });
  124. //年费
  125. Route::group('level', function () {
  126. Route::post('create', 'api/level/create');
  127. Route::get('ify', 'api/level/ify');
  128. Route::get('lst', 'api/level/lst');
  129. Route::get('view', 'api/level/view');
  130. });
  131. //捐献
  132. Route::group('donate', function () {
  133. Route::post('apply', 'api/donate/apply');
  134. Route::get('lst', 'api/donate/lst');
  135. Route::get('ify', 'api/donate/ify');
  136. Route::get('view', 'api/donate/view');
  137. });
  138. //志愿者
  139. Route::group('volunteer', function () {
  140. Route::post('apply', 'api/volunteer/apply');
  141. Route::get('applylst', 'api/volunteer/lst');
  142. });
  143. });
  144. return [
  145. //别名配置,别名只能是映射到控制器且访问时必须加上请求的方法
  146. '__alias__' => [
  147. ],
  148. //变量规则
  149. '__pattern__' => [
  150. ],
  151. // 域名绑定到模块
  152. // '__domain__' => [
  153. // 'admin' => 'admin',
  154. // 'api' => 'api',
  155. // ],
  156. ];