web.php 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?php
  2. use Illuminate\Http\Request;
  3. /*
  4. |--------------------------------------------------------------------------
  5. | API Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here is where you can register API routes for your application. These
  9. | routes are loaded by the RouteServiceProvider within a group which
  10. | is assigned the "api" middleware group. Enjoy building your API!
  11. |
  12. */
  13. /** @var TYPE_NAME $api */
  14. $api = app('Dingo\Api\Routing\Router');
  15. $api->version('v1',[
  16. 'namespace'=>'App\Http\Controllers'
  17. ],function ($api){
  18. /*----------------登录相关---------------*/
  19. $api->get('/login/judge_login','LoginController@judge_login');
  20. $api->any('/login/login','LoginController@login');
  21. $api->get('/login/register','LoginController@register');
  22. $api->get('user/submit_user','UserController@submit_user');
  23. $api->group(['middleware' => 'jwt.auth'], function($api) {
  24. $api->get('AddQrCode','IndexController@AddQrCode');//生成二维码图片
  25. /*--------------------个人信息开始-------------------*/
  26. $api->get('user/getinfo','UserController@getinfo');
  27. $api->get('user/per_data','UserController@per_data');
  28. $api->get('user/confirm_level','UserController@confirm_level');
  29. $api->get('user/user_cert','AuditController@user_cert');
  30. /*----------------授权书相关------------*/
  31. $api->get('/user/auth_code','UserController@auth_code');
  32. $api->post('/user/auth_share','UserController@auth_share');
  33. /*-----------------换绑手机号-----------*/
  34. $api->get('user/send_code','UserController@send_code');
  35. $api->get('user/change_num','UserController@change_num');
  36. /*-----------------地址管理------------*/
  37. $api->get('user/search_address','UserController@search_address');
  38. $api->get('user/show_address','UserController@show_address');
  39. $api->post('user/add_address', 'UserController@add_address');
  40. $api->get('user/del_address', 'UserController@del_address');
  41. $api->post('user/update_address', 'UserController@update_address');
  42. $api->get('user/auth_info','UserController@authInfo');
  43. /*--------------------个人信息结束-------------------*/
  44. $api->group(['prefix'=>'share'],function ($api){
  45. $api->post('CreatedShare', 'ShareController@CreatedShare');
  46. $api->post('ShareList', 'ShareController@ShareList');
  47. });
  48. $api->get('store/get_sign_package','StoreController@getSignPackage');
  49. $api->get('app/GetVRLink','BasicController@GetVRLink');
  50. $api->get('get_activity','OrdertestController@get_activity');//获取活动时间
  51. $api->group(['prefix'=>'UserSend'],function($api){
  52. /**货物扫码权限**/
  53. $api->get('get_arr','UserGoodSendController@get_arr');//new
  54. /**获取下级信息**/
  55. $api->get('get_lower_user','UserGoodSendController@get_lower_user');//new
  56. /**退货操作**/
  57. $api->get('user_return_good','UserGoodSendController@user_return_good');//new
  58. /**发货时的信息查询**/
  59. $api->get('select_send_user','UserGoodSendController@select_send_user');//new
  60. /**退款的信息查询*/
  61. $api->get('select_return_user','UserGoodSendController@select_return_user');//new
  62. /***零售**/
  63. $api->get('sell','UserGoodSendController@sell');//new
  64. //批量发货
  65. $api->post('AllSendGood','UserGoodSendController@AllSendGood');//new
  66. $api->get('getScanLog','UserGoodSendController@getScanLog');//new
  67. /**代理扫码信息**/
  68. $api->get('user_send_good','UserGoodSendController@user_send_good');//ne
  69. });
  70. $api->get('team/invite_code','TeamController@invite_code');
  71. $api->get('/logout','UserController@logout');
  72. $api->get('app/index','BasicController@index');
  73. //消息公告
  74. $api->get('index/get_message_info','IndexController@getMessageInfo');
  75. });
  76. $api->get('system','BasicController@system');
  77. $api->get('send_code','LoginController@send_code');
  78. $api->get('gzh','UserController@gzh');
  79. $api->get('GetShareInfo', 'ShareController@GetShareInfo');
  80. $api->get('shouquan','UserController@shouquan');
  81. $api->get('gzh/{nickname}/{mobile}/{code}',function (){
  82. return '<script>alert("当前链接失效,请联系邀请人重新分享二维码")</script>';
  83. });
  84. $api->get('gzh/{nickname}/{mobile}/{code}/{time}',function (){
  85. return '<script>alert("当前二维码失效,请联系邀请人重新分享二维码")</script>';
  86. });
  87. $api->get('gzh/{nickname}','UserController@gzh');
  88. $api->get('select','UserController@auth_select');
  89. $api->get('discernAdress','AddressController@DealAddress');
  90. $api->get('address/getDiscern','AddressController@getDiscern');
  91. $api->get('address/smart_parse','AddressController@smart_parse');
  92. $api->get('address/getTest','AddressController@getTest');
  93. $api->group(['prefix'=>'QYInfo','namespace'=>'QYInfo'],function ($api){
  94. $api->group(['middleware' => 'jwt.auth'], function($api) {
  95. $api->get('CheckAuth','QYInfoController@CheckAuth');
  96. $api->get('Auth','QYInfoController@Auth');
  97. $api->get('GetDocument','QYInfoController@GetDocument');
  98. $api->get('Pdf','QYInfoController@Pdf');
  99. });
  100. });
  101. });