api.php 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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. $api = app('Dingo\Api\Routing\Router');
  14. $api->version('v1', function ($api) {
  15. /* 订单路由 */
  16. $api->group(['namespace'=>'Modules\Order\Http\Controllers'],function ($api) {
  17. $api->group(['prefix'=>'orders'],function ($api){
  18. $api->get('getorderlist', 'OrdertestController@order_list');
  19. // $api->get('getactivityinfo', 'OrdertestController@getActivityInfo');
  20. $api->get('getgoodsinfo', 'OrdertestController@getGoodsInfo');
  21. $api->post('UpdateExpress', 'OrdertestController@UpdateExpress');
  22. $api->post('UploadOrderGift','OrdertestController@UploadOrderGift');
  23. $api->get('chaidan','OrdertestController@chaidan');
  24. $api->get('chaidans','OrdertestController@chaidans');
  25. $api->get('get_info','OrdertestController@orderBreakUpCourier');
  26. $api->get('order_list_down','OrdertestController@order_list_down');
  27. $api->post('UploadOrderGifts','OrdertestController@UploadOrderGifts');
  28. $api->post('GetDelExpressInfo','OrdertestController@GetDelExpressInfo');
  29. $api->post('DelExpressInfo','OrdertestController@DelExpressInfo');
  30. $api->get('orderStoreBreakUpCourier','OrdertestController@orderStoreBreakUpCourier');
  31. $api->get('order_store_list_down','OrdertestController@order_store_list_down');
  32. $api->get('get_merger_order','OrdertestController@getMergerOrder');
  33. $api->get('export_merger_order','OrdertestController@exportMergerOrder');
  34. $api->get('GetApplyOrder','OrdertestController@GetApplyOrder');
  35. $api->post('destroy_order_address','OrdertestController@destroyOrderAddress');
  36. $api->post('merge_order', 'OrdertestController@mergeOrder');
  37. $api->get('merge_order_detail', 'OrdertestController@mergeOrderDetail');
  38. $api->get('look_good', 'OrdertestController@look_good');
  39. $api->get('good_detail', 'OrdertestController@good_detail');
  40. $api->get('order_pass','OrdertestController@order_pass');
  41. $api->get('order_reject','OrdertestController@order_reject');
  42. $api->post('send_order','OrdertestController@send_order');
  43. $api->post('send_express','OrdertestController@send_express');
  44. $api->get('update_address','OrdertestController@update_address');
  45. $api->post('audit_order','OrdertestController@audit_order');
  46. $api->post('many_audit_order','OrdertestController@many_audit_order');
  47. $api->get('get_user_money','OrdertestController@getUserMoney');
  48. $api->post('add_income_log','OrdertestController@addIncomeLog');
  49. $api->post('part_back_money','OrdertestController@partBackMoney');
  50. $api->get('get_many_back_money_user','OrdertestController@getManyBackMoneyUser');
  51. $api->post('many_back_money','OrdertestController@manyBackMoney');
  52. $api->get('get_agent_gift_bag','OrdertestController@getBAgentGiftBag');
  53. $api->get('get_agent_gift_bag_d','OrdertestController@getBAgentGiftBag_d');
  54. $api->get('get_honor_wall','OrdertestController@getHonorWall');
  55. $api->get('get_travel','OrdertestController@getTravel');
  56. $api->post('add_list_tag','OrdertestController@addListTag');
  57. $api->post('BatchAddTag','OrdertestController@BatchAddTag');
  58. $api->get('export_list','OrdertestController@exportList');
  59. $api->get('export_list_d','OrdertestController@exportList_d');
  60. $api->get('get_like_agent_gift_bag','OrdertestController@getLikeBAgentGiftBag');
  61. $api->get('GetBelongOrderRank','OrdertestController@GetBelongOrderRanks');
  62. $api->get('export_like_agent_gift_bag','OrdertestController@exportLikeBAgentGiftBag');
  63. $api->get('ExportBelongOrderRank','OrdertestController@ExportBelongOrderRank');
  64. $api->get('auto_payment','OrdertestController@autoPayment');
  65. $api->get('get_no_pass_list','OrdertestController@getNoPassList');
  66. $api->get('get_no_pass','OrdertestController@get_no_pass_list');
  67. $api->post('sure_order_info','OrdertestController@sureOrderInfo');
  68. $api->post('no_sure_order_info','OrdertestController@noSureOrderInfo');
  69. $api->get('import_express_no','OrdertestController@importExpressNo');
  70. $api->get('add_store','OrdertestController@add_store');//添加订单体验店所属
  71. $api->post('cancel_store','OrdertestController@cancel_store');//取消订单体验店所属
  72. $api->get('get_storename','OrdertestController@get_storename');//获取体验店名称
  73. $api->get('order_store','OrdertestController@order_store');//查看体验店订单
  74. $api->get('order_store_excel','OrdertestController@order_store_excel');//导出体验店订单
  75. $api->get('get_collect_money_log','OrdertestController@getCollectMoneyLog');
  76. $api->get('get_conditions_order_list', 'OrdertestController@getConditionsOrderList');
  77. $api->get('IsCar', 'OrdertestController@IsCar');
  78. /**修改订单所属者**/
  79. $api->get('UpdateBelongId', 'OrdertestController@UpdateBelongId');
  80. /*获取下面的人**/
  81. $api->get('GetUser', 'OrdertestController@GetUser');
  82. $api->get('GetUserId', 'OrdertestController@GetUserId');
  83. /**修改地址绑定的所属者**/
  84. $api->get('UpAddress', 'OrdertestController@UpAddress');
  85. $api->get('order_detail','OrdertestController@order_detail');
  86. $api->post('submit_order','OrdertestController@submit_order');
  87. $api->get('show_address','OrdertestController@show_address');
  88. $api->get('order_address','OrdertestController@order_address');
  89. $api->get('add_address','OrdertestController@add_address');
  90. $api->get('add_order_log','OrdertestController@add_order_log');
  91. $api->get('add_order_detail_log','OrdertestController@add_order_detail_log');
  92. $api->get('destory_order','OrdertestController@destory_order');
  93. $api->post('destory_order_all','OrdertestController@destory_order_all');
  94. $api->post('order_update','OrdertestController@order_update');
  95. $api->post('down_load','OrdertestController@down_load');
  96. $api->get('get_crown','OrdertestController@get_crown');
  97. $api->get('add_store','OrdertestController@add_store');//添加订单体验店所属
  98. $api->get('get_storename','OrdertestController@get_storename');//获取体验店名称
  99. $api->get('order_store','OrdertestController@order_store');//查看体验店订单
  100. $api->get('order_store_excel','OrdertestController@order_store_excel');//导出体验店订单
  101. $api->get('get_t_data','DataController@get_t_data');//T恤兑换信息
  102. $api->get('get_t_excel','DataController@get_t_excel');//导出T恤兑换信息
  103. $api->post('update_t','DataController@update_t');//修改T恤兑换信息
  104. $api->post('add_t','DataController@add_t');//增加T恤兑换信息
  105. $api->post('delete_t','DataController@delete_t');//删除兑换信息
  106. $api->get('get_like_agent_gift_bag','OrdertestController@getLikeBAgentGiftBag');
  107. $api->get('export_like_agent_gift_bag','OrdertestController@exportLikeBAgentGiftBag');
  108. $api->post('destroy_order_address','OrdertestController@destroyOrderAddress');
  109. $api->post('merge_order', 'OrdertestController@mergeOrder');
  110. $api->get('merge_order_detail', 'OrdertestController@mergeOrderDetail');
  111. $api->get('get_no_pay_orders', 'OrdertestController@getNoPayOrders');
  112. $api->get('send_no_pay_info', 'OrdertestController@sendNoPayInfo');
  113. $api->post('open_auto_pay', 'OrdertestController@openAutoPay');
  114. $api->get('get_auto_pay_status', 'OrdertestController@getAutoPayStatus');
  115. $api->post('add_cancel_why', 'OrdertestController@addCancelWhy');
  116. $api->get('get_cancel_why', 'OrdertestController@getCancelWhy');
  117. $api->get('/GetExceptionOrder', 'OrdertestController@GetExceptionOrders');
  118. $api->get('/ExportExceptionOrder', 'OrdertestController@ExportExceptionOrders');
  119. $api->get('/GetApplyCount', 'OrdertestController@GetApplyCount');
  120. $api->get('GetOrderDetail', 'OrdertestController@GetOrderDetail');
  121. });
  122. /* 肥皂路由 */
  123. $api->group(['prefix'=>'soap'],function ($api){
  124. $api->get('GetSoapList','SoapController@GetSoapList');
  125. $api->get('ExportSoapInfo','SoapController@ExportSoapInfo');
  126. $api->get('UpdateInfo','SoapController@UpdateInfo');
  127. $api->post('UploadExpress','SoapController@UploadExpress');
  128. $api->post('UpdateSoapExpressInfo','SoapController@UpdateSoapExpressInfo');
  129. $api->get('GetExpressInfo','SoapController@GetExpressInfo');
  130. $api->get('ExpressSearch','SoapController@ExpressSearch');
  131. $api->get('UpdateStatus','SoapController@UpdateStatus');
  132. $api->get('GetTabNum','SoapController@GetTabNum');
  133. $api->get('UpdateAllStatus','SoapController@UpdateAllStatus');
  134. $api->get('/Refund','SoapController@Refund');
  135. /**上传单个物流信息**/
  136. $api->post('/Express','SoapController@Express');
  137. });
  138. });
  139. });