123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- <?php
- use Illuminate\Http\Request;
- /*
- |--------------------------------------------------------------------------
- | API Routes
- |--------------------------------------------------------------------------
- |
- | Here is where you can register API routes for your application. These
- | routes are loaded by the RouteServiceProvider within a group which
- | is assigned the "api" middleware group. Enjoy building your API!
- |
- */
- /** @var TYPE_NAME $api */
- $api = app('Dingo\Api\Routing\Router');
- $api->version('v1',[
- 'namespace'=>'App\Http\Controllers'
- ],function ($api){
- $api->post('img','IndexController@img');
- $api->get('scan','OldController@scan');
- $api->post('getinfo','LsGoodSendController@getinfo');
- $api->post('send_goods_news','GoodSendController@send_goods_news');
- $api->get('url','IndexController@url');
- $api->get('NewLogin','LoginController@NewLogin');
- $api->get('NewLoginwazi','LoginController@NewLoginwazi');
- $api->post('LookTime','LookController@LookTimeNewNew');
- $api->post('LookTimeNew','LookController@LookTimeNew');
- $api->post('LookTimeNewNew','LookController@LookTimeNewNew');
- $api->get('get_user','SellController@get_user');
- $api->group(['middleware'=>'check.auth'],function ($api){
- $api->get('get_goodwazi','FwCodeController@get_goodwazi');
- $api->get('get_goodneiku','FwNewCodeController@get_goodneiku');
- $api->get('sendwazi','FwCodeController@sendwazi');
- $api->get('sendneiku','FwNewCodeController@sendwazi');
- $api->get('wazineiku','FwCodeController@wazineiku');
- /***退出登录**/
- $api->get('RemoveLoginStatus','LoginController@RemoveLoginStatus');
- /**代理发货操作**/
- $api->get('user_send_good','GoodSendController@user_send_good');//new
- /**货物扫码权限**/
- $api->get('get_arr','WechatController@get_arr');//new
- /**信息**/
- $api->get('get_lower_user','GoodSendController@get_lower_user');//new
- /**退货操作**/
- $api->get('user_return_good','GoodSendController@user_return_good');//new
- /**发货时的信息查询**/
- $api->get('select_send_user','SelectController@select_send_user');//new
- /**退款的信息查询*/
- $api->get('select_return_user','SelectController@select_return_user');//new
- /***零售**/
- $api->get('sell','SellController@sell');//new
- /**扫描快递单**/
- $api->get('get_express','GoodSendController@get_express');
- /**获取四种商品**/
- $api->get('get_good','GoodSendController@get_good');
- $api->get('get_lower_users','GoodSendController@get_lower_users');
- $api->get('get_goodwazi','GoodSendController@get_goodwazi');
- $api->get('sendwazi','FwCodeController@sendwazi');
- /**公司发货**/
- $api->get('send_goods','GoodSendController@send_goods');
- $api->post('send_goods_new','GoodSendController@send_goods_new');
- /**信息查询***/
- $api->get('select_user','SelectController@select_user');
- $api->get('get_user_info','LoginController@get_user_info');
- /**顾客换货**/
- $api->get('/Customer/GetApplyInfo','ApplyCustomerController@GetApplyInfo');
- $api->get('/Customer/ApplyCustomerSend','ApplyCustomerController@ApplyCustomerSend');
- });
- $api->get('/authenticity/select_user','SelectController@select_user');
- /**仓库查看发货日志*/
- $api->post('/authenticity/CKSelect','SelectController@CKSelect');
- $api->get('/auth/{code}','SelectController@code');
- $api->get('/select/select_true','SelectController@select_true');
- $api->get('/select/select_truewazi','SelectController@select_truewazi');
- $api->get('/img/get_img_url','SelectController@get_img_url');
- $api->get('/scan/scancode','LoginController@scancode');
- });
|