api.php 3.8 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. $api->post('img','IndexController@img');
  19. $api->get('scan','OldController@scan');
  20. $api->post('getinfo','LsGoodSendController@getinfo');
  21. $api->post('send_goods_news','GoodSendController@send_goods_news');
  22. $api->get('url','IndexController@url');
  23. $api->get('NewLogin','LoginController@NewLogin');
  24. $api->get('NewLoginwazi','LoginController@NewLoginwazi');
  25. $api->post('LookTime','LookController@LookTimeNewNew');
  26. $api->post('LookTimeNew','LookController@LookTimeNew');
  27. $api->post('LookTimeNewNew','LookController@LookTimeNewNew');
  28. $api->get('get_user','SellController@get_user');
  29. $api->group(['middleware'=>'check.auth'],function ($api){
  30. $api->get('get_goodwazi','FwCodeController@get_goodwazi');
  31. $api->get('get_goodneiku','FwNewCodeController@get_goodneiku');
  32. $api->get('sendwazi','FwCodeController@sendwazi');
  33. $api->get('sendneiku','FwNewCodeController@sendwazi');
  34. $api->get('wazineiku','FwCodeController@wazineiku');
  35. /***退出登录**/
  36. $api->get('RemoveLoginStatus','LoginController@RemoveLoginStatus');
  37. /**代理发货操作**/
  38. $api->get('user_send_good','GoodSendController@user_send_good');//new
  39. /**货物扫码权限**/
  40. $api->get('get_arr','WechatController@get_arr');//new
  41. /**信息**/
  42. $api->get('get_lower_user','GoodSendController@get_lower_user');//new
  43. /**退货操作**/
  44. $api->get('user_return_good','GoodSendController@user_return_good');//new
  45. /**发货时的信息查询**/
  46. $api->get('select_send_user','SelectController@select_send_user');//new
  47. /**退款的信息查询*/
  48. $api->get('select_return_user','SelectController@select_return_user');//new
  49. /***零售**/
  50. $api->get('sell','SellController@sell');//new
  51. /**扫描快递单**/
  52. $api->get('get_express','GoodSendController@get_express');
  53. /**获取四种商品**/
  54. $api->get('get_good','GoodSendController@get_good');
  55. $api->get('get_lower_users','GoodSendController@get_lower_users');
  56. $api->get('get_goodwazi','GoodSendController@get_goodwazi');
  57. $api->get('sendwazi','FwCodeController@sendwazi');
  58. /**公司发货**/
  59. $api->get('send_goods','GoodSendController@send_goods');
  60. $api->post('send_goods_new','GoodSendController@send_goods_new');
  61. /**信息查询***/
  62. $api->get('select_user','SelectController@select_user');
  63. $api->get('get_user_info','LoginController@get_user_info');
  64. /**顾客换货**/
  65. $api->get('/Customer/GetApplyInfo','ApplyCustomerController@GetApplyInfo');
  66. $api->get('/Customer/ApplyCustomerSend','ApplyCustomerController@ApplyCustomerSend');
  67. });
  68. $api->get('/authenticity/select_user','SelectController@select_user');
  69. /**仓库查看发货日志*/
  70. $api->post('/authenticity/CKSelect','SelectController@CKSelect');
  71. $api->get('/auth/{code}','SelectController@code');
  72. $api->get('/select/select_true','SelectController@select_true');
  73. $api->get('/select/select_truewazi','SelectController@select_truewazi');
  74. $api->get('/img/get_img_url','SelectController@get_img_url');
  75. $api->get('/scan/scancode','LoginController@scancode');
  76. });