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 '';
});
$api->get('gzh/{nickname}/{mobile}/{code}/{time}',function (){
return '';
});
$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');
});
});
});