'Api'], function(){ Route::group(['namespace' => 'V1'], function(){ //测试 Route::resource('test', 'TestController'); //微信信息通知地址(暂时没有用) Route::resource('wx_notification', 'WxNotificationController'); //统一微信入口 授权拿第三方用户id Route::get('third_wx_auth', 'ThirdWxController@auth'); //统一微信入口 获取JSSDK Route::post('third_wx_jssdk', 'ThirdWxController@getJsSdk'); //统一微信入口 授权拿第三方用户id Route::get('third_user_info', 'ThirdWxController@getUserInfo'); //统一用户名密码入口 Route::resource('third_up', 'ThirdUpController'); //iOS 审核显示 Route::get('iOSshow', 'VersionController@iOSshow'); //api认证 Route::group(['middleware'=>['apiSign']], function(){ //天气预报接口 Route::resource('weather', 'WeatherController'); //版本信息 Route::resource('version', 'VersionController'); //推荐 Route::resource('commend', 'CommendController'); //token验证 Route::group(['middleware'=>['token']], function(){ //退出登陆 Route::resource('login_out', 'LoginOutController', ['only'=>['store']]); //用户 Route::resource('user', 'UserController'); //统一H5聊天 Route::resource('third_h5_chat', 'ThirdH5ChatController'); //上传图片 Route::resource('upload', 'UploadController', ['only'=>['store']]); //AI聊天历史列表 Route::get('AiChatList', 'Chat\AiChatController@index'); //AI聊天发送数据 Route::post('AiChatSendData', 'Chat\AiChatController@sendData'); //banner // Route::resource('banner', 'BannerController', ['only'=>['index']]); // 系统配置 // Route::resource('config', 'SysConfigController', ['only'=>['index']]); // //专家来了 // Route::group(['namespace' => 'Specialist', 'prefix' => 'specialist'], function(){ // //首页 一级栏目列表 二级栏目列表 栏目详情 // Route::resource('index', 'IndexController'); //// Route::resource('getChapterList', 'IndexController'); // Route::get('getChapterList', 'IndexController@getChapterList')->name('getChapterList'); // //详情 列表 详情 // Route::resource('specialist_info', 'SpecialistInfoController'); // }); //心理大厅 Route::group(['namespace' => 'Mentality', 'prefix' => 'mentality'], function(){ //反馈意见 // Route::resource('feedback','FeedBackController'); // //量表分类 列表 // Route::resource('scale_category', 'ScaleCategoryController'); // //量表 列表 // Route::resource('scale', 'ScaleController'); // //获取数据 // Route::get('gettestinfo', 'ScaleController@getTestInfo')->name('getTestInfo'); //开始测评 Route::get('start_test', 'ScaleController@startTest')->name('startTest'); // //训练分类 列表 // Route::resource('drill_category', 'DrillCategoryController'); //// 训练 列表 详情 // Route::resource('drill', 'DrillController'); //// 训练扩展 详情 // Route::resource('play', 'PlayController'); // //心情记录 列表 详情 添加 修改 // Route::resource('mood', 'MoodController'); // //用户周记录 列表,详情 // Route::resource('week', 'WeekController'); // //心情等级 列表 // Route::resource('mood_level', 'MoodLevelController'); // //心情标签 列表 // Route::resource('mood_tag', 'MoodTagController'); // //睡眠等级 列表 // Route::resource('sleep_level', 'SleepLevelController'); //睡眠 列表 添加 // Route::resource('sleep', 'SleepController'); // //给未来的信 添加 // Route::resource('letter', 'LetterController'); // //统计 心情 睡眠 // Route::resource('statistics', 'StatisticsController'); // //统计心情下拉选择 // Route::get('mood_select', 'StatisticsController@getMoodSelect')->name('statisticsMoodSelect'); // //统计睡眠下拉选择 // Route::get('sleep_select', 'StatisticsController@getSleepSelect')->name('statisticsSleepSelect'); // //收藏 添加取消收藏 // Route::resource('collect', 'CollectController'); // //浏览记录 列表 // Route::resource('browse_record', 'BrowseRecordController'); }); }); //微信H5 Route::group(['namespace' => 'MpUser' , 'prefix' => 'mp_user'], function(){ Route::resource('access_token', 'AccessTokenController'); Route::resource('mp_user', 'MpUserController'); //微信小程序登录 }); //微信公众号 Route::group(['namespace' => 'MpService' , 'prefix' => 'mp_service'], function(){ Route::resource('jsapi_sign', 'JsapiSignController'); }); // //专家来了 // Route::group(['namespace' => 'Specialist', 'prefix' => 'specialist'], function(){ // //首页 一级栏目列表 二级栏目列表 栏目详情 // Route::resource('index', 'IndexController'); //// Route::resource('getChapterList', 'IndexController'); //// Route::get('getChapterList', 'IndexController@getChapterList')->name('getChapterList'); // //详情 列表 详情 // Route::resource('specialist_info', 'SpecialistInfoController'); // }); // Route::group(['namespace' => 'Mentality', 'prefix' => 'mentality'], function(){ // //反馈意见 // //量表分类 列表 // Route::resource('scale_category', 'ScaleCategoryController'); // //量表 列表 // Route::resource('scale', 'ScaleController'); // //获取数据 // //开始测评 // //训练分类 列表 // Route::resource('drill_category', 'DrillCategoryController'); // //训练 列表 详情 // Route::resource('drill', 'DrillController'); // Route::resource('play', 'PlayController'); // // }); // //专家来了 // Route::group(['namespace' => 'Specialist', 'prefix' => 'specialist'], function(){ // //首页 一级栏目列表 二级栏目列表 栏目详情 // Route::resource('index', 'IndexController'); // //详情 列表 详情 // Route::resource('specialist_info', 'SpecialistInfoController'); // }); Route::resource('config', 'SysConfigController', ['only'=>['index']]); //banner Route::resource('banner', 'BannerController', ['only'=>['index']]); //量表分类 Route::resource('scale_category', 'Mentality\ScaleCategoryController'); //训练分类 列表 Route::resource('drill_category', 'Mentality\DrillCategoryController'); //专家来了 Route::group(['namespace' => 'Specialist', 'prefix' => 'specialist'], function(){ //首页 一级栏目列表 二级栏目列表 栏目详情 Route::resource('index', 'IndexController'); Route::get('category', 'IndexController@category'); // Route::resource('getChapterList', 'IndexController'); Route::get('getChapterList', 'IndexController@getChapterList')->name('getChapterList'); Route::group(['middleware'=>['token']], function(){ //专家来了点赞 Route::get('thumbsUpNum/{id}', 'SpecialistInfoController@thumbsUpNum')->name('thumbsUpNum'); //专家来了喜欢 Route::get('loveNum/{id}', 'SpecialistInfoController@loveNum')->name('loveNum'); //专家来了信息关联列表 Route::get('specialistInfosAssociationList', 'SpecialistInfoController@specialistInfosAssociationList')->name('specialistInfosAssociationList'); //专家来了留言 Route::post('leaveMessage', 'SpecialistInfoController@leaveMessage')->name('leaveMessage'); //详情 列表 详情 Route::resource('specialist_info', 'SpecialistInfoController'); }); }); Route::group(['namespace' => 'Mentality', 'prefix' => 'mentality', 'middleware'=>['token']], function(){ //反馈意见 Route::resource('feedback','FeedBackController'); //量表分类 列表 Route::resource('scale_category', 'ScaleCategoryController'); //量表 列表 Route::resource('scale', 'ScaleController'); //获取数据 Route::get('gettestinfo', 'ScaleController@getTestInfo')->name('getTestInfo'); //开始测评 // Route::get('start_test', 'ScaleController@startTest')->name('startTest'); //训练分类 列表 Route::resource('drill_category', 'DrillCategoryController'); // 训练 列表 详情 Route::resource('drill', 'DrillController'); //训练点赞 Route::get('drillContent/thumbsUpNum/{id}', 'DrillController@thumbsUpNum')->name('thumbsUpNum'); //训练喜欢 Route::get('drillContent/loveNum/{id}', 'DrillController@loveNum')->name('loveNum'); //训练留言 Route::post('drillContent/leaveMessage', 'DrillController@leaveMessage')->name('leaveMessage'); //播放训练科目 Route::get('drillContent/drillPlaySubject/{id}', 'DrillController@playSubject'); // 训练扩展 详情 Route::resource('play', 'PlayController'); //心情记录 列表 详情 添加 修改 Route::resource('mood', 'MoodController'); //用户周记录 列表,详情 Route::resource('week', 'WeekController'); //心情等级 列表 Route::resource('mood_level', 'MoodLevelController'); //心情标签 列表 Route::resource('mood_tag', 'MoodTagController'); //睡眠等级 列表 Route::resource('sleep_level', 'SleepLevelController'); //睡眠 列表 添加 Route::resource('sleep', 'SleepController'); //给未来的信 添加 Route::resource('letter', 'LetterController'); //统计 心情 睡眠 Route::resource('statistics', 'StatisticsController'); //统计心情下拉选择 Route::get('mood_select', 'StatisticsController@getMoodSelect')->name('statisticsMoodSelect'); //统计睡眠下拉选择 Route::get('sleep_select', 'StatisticsController@getSleepSelect')->name('statisticsSleepSelect'); //收藏 添加取消收藏 Route::resource('collect', 'CollectController'); //浏览记录 列表 Route::resource('browse_record', 'BrowseRecordController'); }); }); //数据统计 Route::prefix('dashboard/')->group(function () { Route::get('period_register', 'DashboardController@getPeriodRegisiter'); Route::get('/video_count', [DashboardController::class, 'videoCount']); Route::get('/video', [DashboardController::class, 'video']); Route::get('/report', [DashboardController::class, 'report']); }); Route::group(['prefix' => 'workstation'], function(){ Route::post('login', 'FourActivityController@loginOrRegister')->middleware('psy_user'); Route::group(['prefix' => 'report'], function(){ Route::post('do', 'FourActivityController@store')->middleware('psy_user'); Route::post('re-do', 'FourActivityController@store')->middleware('psy_user'); Route::get('/', 'FourActivityController@list')->middleware('psy_user'); Route::get('/{id}', 'FourActivityController@show')->middleware('psy_user'); }); Route::post('upload', 'FourActivityController@upload'); }); Route::get('/sc/tree', [ScaleCategoryController::class, 'tree']); }); });