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->get('/login/judge_login','LoginController@judge_login');
- $api->any('/login/login','LoginController@login');
- $api->get('/login/register','LoginController@register');
- $api->get('user/submit_user','UserController@submit_user');
- $api->group(['middleware' => 'jwt.auth'], function($api) {
- $api->get('AddQrCode','IndexController@AddQrCode');//生成二维码图片
- /*--------------------个人信息开始-------------------*/
- $api->get('user/getinfo','UserController@getinfo');
- $api->get('user/per_data','UserController@per_data');
- $api->get('user/confirm_level','UserController@confirm_level');
- $api->get('user/user_cert','AuditController@user_cert');
- /*----------------授权书相关------------*/
- $api->get('/user/auth_code','UserController@auth_code');
- $api->post('/user/auth_share','UserController@auth_share');
- /*-----------------换绑手机号-----------*/
- $api->get('user/send_code','UserController@send_code');
- $api->get('user/change_num','UserController@change_num');
- /*-----------------地址管理------------*/
- $api->get('user/search_address','UserController@search_address');
- $api->get('user/show_address','UserController@show_address');
- $api->post('user/add_address', 'UserController@add_address');
- $api->get('user/del_address', 'UserController@del_address');
- $api->post('user/update_address', 'UserController@update_address');
- $api->get('user/auth_info','UserController@authInfo');
- /*--------------------个人信息结束-------------------*/
- $api->group(['prefix'=>'share'],function ($api){
- $api->post('CreatedShare', 'ShareController@CreatedShare');
- $api->post('ShareList', 'ShareController@ShareList');
- });
- $api->get('store/get_sign_package','StoreController@getSignPackage');
- $api->get('app/GetVRLink','BasicController@GetVRLink');
- $api->get('get_activity','OrdertestController@get_activity');//获取活动时间
- $api->group(['prefix'=>'UserSend'],function($api){
- /**货物扫码权限**/
- $api->get('get_arr','UserGoodSendController@get_arr');//new
- /**获取下级信息**/
- $api->get('get_lower_user','UserGoodSendController@get_lower_user');//new
- /**退货操作**/
- $api->get('user_return_good','UserGoodSendController@user_return_good');//new
- /**发货时的信息查询**/
- $api->get('select_send_user','UserGoodSendController@select_send_user');//new
- /**退款的信息查询*/
- $api->get('select_return_user','UserGoodSendController@select_return_user');//new
- /***零售**/
- $api->get('sell','UserGoodSendController@sell');//new
- //批量发货
- $api->post('AllSendGood','UserGoodSendController@AllSendGood');//new
- $api->get('getScanLog','UserGoodSendController@getScanLog');//new
- /**代理扫码信息**/
- $api->get('user_send_good','UserGoodSendController@user_send_good');//ne
- });
- $api->get('team/invite_code','TeamController@invite_code');
- $api->get('/logout','UserController@logout');
- $api->get('app/index','BasicController@index');
- //消息公告
- $api->get('index/get_message_info','IndexController@getMessageInfo');
- });
- $api->get('system','BasicController@system');
- $api->get('send_code','LoginController@send_code');
- $api->get('gzh','UserController@gzh');
- $api->get('GetShareInfo', 'ShareController@GetShareInfo');
- $api->get('shouquan','UserController@shouquan');
- $api->get('gzh/{nickname}/{mobile}/{code}',function (){
- return '<script>alert("当前链接失效,请联系邀请人重新分享二维码")</script>';
- });
- $api->get('gzh/{nickname}/{mobile}/{code}/{time}',function (){
- return '<script>alert("当前二维码失效,请联系邀请人重新分享二维码")</script>';
- });
- $api->get('gzh/{nickname}','UserController@gzh');
- $api->get('select','UserController@auth_select');
- $api->get('discernAdress','AddressController@DealAddress');
- $api->get('address/getDiscern','AddressController@getDiscern');
- $api->get('address/smart_parse','AddressController@smart_parse');
- $api->get('address/getTest','AddressController@getTest');
- $api->group(['prefix'=>'QYInfo','namespace'=>'QYInfo'],function ($api){
- $api->group(['middleware' => 'jwt.auth'], function($api) {
- $api->get('CheckAuth','QYInfoController@CheckAuth');
- $api->get('Auth','QYInfoController@Auth');
- $api->get('GetDocument','QYInfoController@GetDocument');
- $api->get('Pdf','QYInfoController@Pdf');
- });
- });
- });
|