* * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It is a breeze. Simply tell Lumen the URIs it should respond to | and give it the Closure to call when that URI is requested. | */ /** * 公共 */ Route::group([ 'prefix' => 'common' ], function () { Route::get('enums', 'CommonController@enums'); Route::get('clear', 'CommonController@clear'); Route::get('test', 'CommonController@test'); }); /** * 基础模块 */ Route::group([ 'namespace' => 'Base', 'prefix' => 'base' ], function () { //账号密码登录 Route::post('/auth/login', 'AuthController@accountLogin'); //微信小程序登录 Route::post('/auth/mini-program-login', 'AuthController@miniProgramLogin'); //配置文件 Route::post('/settings/configs', 'SettingController@configs'); Route::post('/dicts/configs', 'DictController@configs'); Route::get('/dicts/config', 'DictController@config'); Route::get('/admin/select-options', 'AdminController@selectOptions'); Route::group([ 'middleware' => ['auth:admins', 'auth.role:admin'] // 'middleware' => ['jwt.auth', 'jwt.refresh', 'auth.role:admin'] ], function () { Route::get('/auth/me', 'AuthController@me'); Route::get('/auth/logout', 'AuthController@logout'); // Route::post('/auth/refresh-token', 'AuthController@refreshToken'); Route::post('/auth/validate-password', 'AuthController@validatePassword'); Route::post('/auth/bind-wechat', 'AuthController@bindWechat'); Route::get('/auth/unbind-wechat', 'AuthController@unbindWechat'); Route::post('/auth/mini-bind-mobile', 'AuthController@miniBindMobile'); Route::post('/auth/update-password', 'AuthController@updatePassword'); Route::post('/auth/update-info', 'AuthController@updateInfo'); Route::post('/auth/mobile/send-validate-code', 'AuthController@sendValidateCode'); Route::post('/auth/mobile', 'AuthController@updateMobile'); //日志记录 Route::get('/logs', 'LogController@index'); Route::get('/log', 'LogController@show'); //岗位管理 Route::get('/jobs', 'JobController@index'); Route::post('/job', 'JobController@store'); Route::get('/job', 'JobController@show'); Route::put('/job', 'JobController@update'); Route::delete('/job', 'JobController@destroy'); Route::get('/job/select-options', 'JobController@selectOptions'); //字典管理 Route::get('/dicts', 'DictController@index'); Route::post('/dict', 'DictController@store'); Route::get('/dict', 'DictController@show'); Route::put('/dict', 'DictController@update'); Route::delete('/dict', 'DictController@destroy'); Route::get('/dict-details', 'DictDetailController@index'); Route::post('/dict-detail', 'DictDetailController@store'); Route::get('/dict-detail', 'DictController@show'); Route::put('/dict-detail', 'DictDetailController@update'); Route::delete('/dict-detail', 'DictDetailController@destroy'); //配置管理 Route::get('/settings', 'SettingController@index'); Route::post('/setting', 'SettingController@store'); Route::get('/setting', 'SettingController@show'); Route::put('/setting', 'SettingController@update'); Route::delete('/setting', 'SettingController@destroy'); Route::post('/setting/save', 'SettingController@save'); //部门管理 Route::get('/departments', 'DepartmentController@index'); Route::post('/department', 'DepartmentController@store'); Route::get('/department', 'DepartmentController@show'); Route::put('/department', 'DepartmentController@update'); Route::delete('/department', 'DepartmentController@destroy'); Route::get('/department/select-options', 'DepartmentController@selectOptions'); //公司管理 Route::get('/companies', 'CompanyController@index'); Route::post('/company', 'CompanyController@store'); Route::get('/company', 'CompanyController@show'); Route::put('/company', 'CompanyController@update'); Route::delete('/company', 'CompanyController@destroy'); Route::get('/company/select-options', 'CompanyController@selectOptions'); //菜单管理 Route::get('/menus', 'MenuController@index'); Route::post('/menu', 'MenuController@store'); Route::get('/menu', 'MenuController@show'); Route::put('/menu', 'MenuController@update'); Route::delete('/menu', 'MenuController@destroy'); Route::get('/menu/icons', 'MenuController@icons'); Route::get('/menu/my-menus', 'MenuController@myMenus'); //角色管理 Route::get('/roles', 'RoleController@index'); Route::post('/role', 'RoleController@store'); Route::get('/role', 'RoleController@show'); Route::put('/role', 'RoleController@update'); Route::delete('/role', 'RoleController@destroy'); Route::post('/role/save-menus', 'RoleController@saveMenusPermissions'); Route::post('/role/save-data-permissions', 'RoleController@saveDataPermissions'); Route::post('/role/save-apis-permissions', 'RoleController@saveApisPermissions'); Route::get('/role/permissions', 'RoleController@getRolePermissions'); Route::get('/role/select-options', 'RoleController@selectOptions'); //API权限列表 Route::get('/permissions', 'PermissionController@index'); //资源管理 Route::post('/resource/upload', 'ResourceController@upload'); Route::post('/resource/download', 'ResourceController@download'); Route::post('/resource/base64-to-img', 'ResourceController@base64ToImg'); //管理员管理 Route::get('/admins', 'AdminController@index'); Route::post('/admin', 'AdminController@store'); Route::get('/admin', 'AdminController@show'); Route::put('/admin', 'AdminController@update'); Route::delete('/admin', 'AdminController@destroy'); Route::post('/admin/batch-delete', 'AdminController@batchDelete'); Route::post('/admin/reset-password', 'AdminController@resetPassword'); //站内信 Route::get('/messages', 'MessageController@index'); Route::post('/message', 'MessageController@store'); Route::get('/message', 'MessageController@show'); Route::put('/message', 'MessageController@update'); Route::delete('/message', 'MessageController@destroy'); Route::get('/message/me', 'UserMessageController@meMessage'); Route::get('/message/read-all', 'UserMessageController@readAllMessages'); Route::get('/message/read', 'UserMessageController@readMessage'); Route::get('/message/info', 'UserMessageController@show'); //任务管理 Route::get('/tasks', 'TaskController@index'); //用户管理 Route::get('/users', 'UserController@index'); // Route::get('/user', 'UserController@show'); // Route::put('/user', 'UserController@update'); // Route::delete('/user', 'UserController@destroy'); //小程序轮播图 Route::get('/banners', 'BannerController@index'); Route::post('/banner', 'BannerController@store'); Route::get('/banner', 'BannerController@show'); Route::put('/banner', 'BannerController@update'); Route::delete('/banner', 'BannerController@destroy'); //Route::post('/banner', 'BannerController@upload'); //事项来源 Route::get('/sourceMatters', 'SourceMattersController@index'); Route::post('/sourceMatter', 'SourceMattersController@store'); Route::get('/sourceMatter', 'SourceMattersController@show'); Route::put('/sourceMatter', 'SourceMattersController@update'); Route::delete('/sourceMatter', 'SourceMattersController@destroy'); Route::get('/sourceMatter/select-options', 'SourceMattersController@selectOptions'); }); }); /** * 新闻公告 */ Route::group([ 'prefix' => 'info', 'namespace' => 'Info', 'middleware' => ['auth:admins', 'auth.role:admin'] ], function () { //新闻管理 Route::get('/news', 'NewsController@index'); Route::post('/new', 'NewsController@store'); Route::get('/new', 'NewsController@show'); Route::put('/new', 'NewsController@update'); Route::delete('/new', 'NewsController@destroy'); //通知公告 Route::get('/notices', 'NoticeController@index'); Route::post('/notice', 'NoticeController@store'); Route::get('/notice', 'NoticeController@show'); Route::put('/notice', 'NoticeController@update'); Route::delete('/notice', 'NoticeController@destroy'); Route::post('/keyword', 'SearchHistoryController@store'); Route::get('/keywords', 'SearchHistoryController@history'); Route::delete('/keyword', 'SearchHistoryController@destroy'); //资讯类型 Route::get('/info_types', 'InformationTypeController@index'); Route::post('/info_type', 'InformationTypeController@store'); Route::get('/info_type', 'InformationTypeController@show'); Route::put('/info_type', 'InformationTypeController@update'); Route::delete('/info_type', 'InformationTypeController@destroy'); //资讯内容 Route::get('/infos', 'InformationController@index'); Route::post('/info', 'InformationController@store'); Route::get('/info', 'InformationController@show'); Route::put('/info', 'InformationController@update'); Route::delete('/info', 'InformationController@destroy'); //投诉内容 Route::get('/complaints', 'ComplaintController@index'); Route::get('/complaint', 'ComplaintController@show'); Route::put('/complaint', 'ComplaintController@update'); Route::delete('/complaint', 'ComplaintController@destroy'); //投诉 Route::get('/complaint_messages', 'ComplaintMessageController@index'); Route::get('/complaint_message', 'ComplaintMessageController@show'); //员工端消息通知 Route::get('/messages-admin', 'ComplaintController@messagesAdmin'); Route::get('/message-admin', 'ComplaintController@messageAdmin'); //用户投诉数量查询 Route::get('/nums', 'ComplaintController@complaintNums'); //首页数据 Route::get('/home', 'HomeController@home'); }); /** * 审核模块 */ Route::group([ 'prefix' => 'check', 'namespace' => 'Check', 'middleware' => ['auth:admins', 'auth.role:admin'] ], function () { //审核流程管理管理 Route::get('/flows', 'FlowController@index'); Route::post('/flow', 'FlowController@store'); Route::get('/flow', 'FlowController@show'); Route::put('/flow', 'FlowController@update'); Route::delete('/flow', 'FlowController@destroy'); Route::post('/flow/save-nodes', 'NodeController@saveNodes'); Route::get('/flow/nodes', 'NodeController@nodes'); Route::post('/apply/check', 'ApplyController@check'); Route::post('/apply/batch-check', 'ApplyController@batchCheck'); Route::post('/apply/progress', 'ApplyController@progress'); Route::get('/applies', 'ApplyController@index'); }); /** * AI学车-学员档案管理 */ Route::post('/car/order/sign-up', 'Car\OrderController@signUp'); Route::get('/car/grade', 'Car\GradeController@show'); Route::get('/car/grade/select-options', 'Car\GradeController@selectOptions'); Route::get('/car/shop/down-code', 'Car\ShopController@downShopCode'); Route::get('/car/shop', 'Car\ShopController@show'); //Route::post('/car/order/export', 'Car\OrderController@export'); //Route::post('/car/bill/export', 'Car\BillController@export'); Route::group([ 'prefix' => 'car', 'namespace' => 'Car', 'middleware' => ['auth:admins', 'auth.role:admin'] ], function () { //班型管理 Route::get('/grades', 'GradeController@index'); Route::post('/grade', 'GradeController@store'); // Route::get('/grade', 'GradeController@show'); Route::put('/grade', 'GradeController@update'); Route::delete('/grade', 'GradeController@destroy'); // Route::get('/grade/select-options', 'GradeController@selectOptions'); //门店管理 Route::get('/shops', 'ShopController@index'); Route::post('/shop', 'ShopController@store'); Route::put('/shop', 'ShopController@update'); Route::delete('/shop', 'ShopController@destroy'); Route::get('/shop/select-options', 'ShopController@selectOptions'); //学员管理 Route::get('/orders', 'OrderController@index'); Route::post('/order', 'OrderController@store'); Route::get('/order', 'OrderController@show'); Route::put('/order', 'OrderController@update'); Route::post('/order/change-status', 'OrderController@changeStatus'); Route::delete('/order', 'OrderController@destroy'); Route::post('/order/money-lists', 'OrderController@moneyLists'); Route::get('/order/select-options', 'OrderController@selectOptions'); Route::get('/order/export-fields', 'OrderController@exportFields'); // Route::get('/order/export', 'OrderController@export'); Route::post('/order/export', 'OrderController@export'); Route::post('/bill/export', 'BillController@export'); Route::get('/order/logs', 'OrderLogController@index'); Route::get('/order/log', 'OrderLogController@show'); //财务管理 Route::get('/bills', 'BillController@index'); Route::post('/bill', 'BillController@store'); Route::get('/bill', 'BillController@show'); Route::put('/bill', 'BillController@update'); Route::delete('/bill', 'BillController@destroy'); Route::post('/bill/batch-check', 'BillController@batchCheck'); Route::post('/bill/batch-give', 'BillController@batchGive'); Route::get('/bill/export-fields', 'BillController@exportFields'); Route::get('/applies', 'ApplyMoneyController@index'); Route::post('/apply', 'ApplyMoneyController@store'); Route::get('/apply', 'ApplyMoneyController@show'); Route::put('/apply', 'ApplyMoneyController@update'); Route::delete('/apply', 'ApplyMoneyController@destroy'); Route::post('/apply/check', 'ApplyMoneyController@check'); Route::get('/apply/logs', 'ApplyMoneyLogController@index'); Route::get('/statistics/home', 'StatisticsController@home'); }); /** * 校报系统 */ Route::group([ 'prefix' => 'manage', 'namespace' => 'Manage', 'middleware' => ['auth:admins', 'auth.role:admin'] ], function () { //导入管理 Route::get('/import/records', 'ImportRecordController@index'); Route::post('/import/record', 'ImportRecordController@store'); Route::get('/import/record', 'ImportRecordController@show'); // Route::put('/import/record', 'ImportRecordController@update'); Route::delete('/import/record', 'ImportRecordController@destroy'); // Route::get('/import/record/select-options', 'ImportRecordController@selectOptions'); Route::post('/import/record/retry-import', 'ImportRecordController@retryImport'); Route::get('/import/record/template-select-options', 'ImportRecordController@importTemplateSelectOptions'); // Route::post('/import/record/merge', 'ImportRecordController@merge'); // Route::post('/import/record/cancel-merge', 'ImportRecordController@cancelMerge'); //预处理信息管理 Route::get('/import/messages', 'PreMessageController@index'); Route::post('/import/message', 'PreMessageController@store'); Route::get('/import/message', 'PreMessageController@show'); Route::put('/import/message', 'PreMessageController@update'); Route::delete('/import/message', 'PreMessageController@destroy'); Route::post('/import/message/batch-delete', 'PreMessageController@batchDelete'); Route::post('/import/message/split-message', 'PreMessageController@splitMessage'); Route::post('/import/message/merge-message', 'PreMessageController@mergeMessage'); Route::post('/import/message/batch-check', 'PreMessageController@batchCheck'); Route::post('/import/message/down', 'PreMessageController@down'); Route::get('/import/message/search-histories', 'SearchHistoryController@myHistory'); Route::post('/import/message/search-history', 'SearchHistoryController@store'); Route::delete('/import/message/search-history', 'SearchHistoryController@destroy'); //分类管理 Route::get('/categories', 'CategoryController@index'); Route::get('/category/tree', 'CategoryController@tree'); Route::post('/category', 'CategoryController@store'); Route::get('/category', 'CategoryController@show'); Route::put('/category', 'CategoryController@update'); Route::delete('/category', 'CategoryController@destroy'); Route::get('/category/select-options', 'CategoryController@selectOptions'); //任务管理 Route::get('/tasks', 'TaskController@index'); Route::post('/task', 'TaskController@store'); Route::get('/task', 'TaskController@show'); Route::put('/task', 'TaskController@update'); Route::delete('/task', 'TaskController@destroy'); Route::post('/task/retry', 'TaskController@retry'); // Route::post('/task/batch-delete', 'TaskController@batchDelete'); Route::post('/task/merge', 'TaskController@merge'); Route::post('/task/cancel-merge', 'TaskController@cancelMerge'); Route::post('/task/export', 'TaskController@export'); //指挥交办 Route::get('/messages', 'MessageController@index'); Route::post('/message', 'MessageController@store'); Route::get('/message', 'MessageController@show'); Route::put('/message', 'MessageController@update'); Route::delete('/message', 'MessageController@destroy'); Route::post('/message/batch-delete', 'MessageController@batchDelete'); // Route::post('/message/batch-allot', 'MessageController@batchAllot'); // Route::post('/message/allot', 'MessageController@allot'); // Route::post('/message/transfer', 'MessageController@transfer'); // Route::post('/message/batch-transfer', 'MessageController@batchTransfer'); Route::post('/message/accept', 'MessageController@accept'); Route::post('/message/batch-accept', 'MessageController@batchAccept'); Route::post('/message/finish', 'MessageController@finish'); Route::post('/message/batch-finish', 'MessageController@batchFinish'); Route::post('/message/application-multi-department', 'MessageController@applicationMultiDepartment'); Route::post('/message/check-application-multi-department', 'MessageController@checkApplicationMultiDepartment'); Route::get('/message/similar-people', 'MessageController@similarPeople'); Route::get('/message/similar-address', 'MessageController@similarAddress'); Route::get('/message/similar-type', 'MessageController@similarType'); Route::post('/message/export-similar-people', 'MessageController@exportSimilarPeople'); Route::post('/message/export-similar-address', 'MessageController@exportSimilarAddress'); Route::post('/message/export-similar-type', 'MessageController@exportSimilarType'); Route::post('/message/export-similar-message', 'MessageController@exportMessage'); Route::get('/message/similar', 'MessageController@similar'); Route::post('/message/similar-remove', 'MessageController@removeSimilar'); Route::post('/message/similar-check', 'MessageController@checkSimilar'); Route::get('/message-nums', 'MessageController@nums'); //统计分析 Route::get('/statistics', 'StatisticsController@statistics'); // Route::get('/statistics-down', 'StatisticsController@down'); }); Route::group([ 'prefix' => 'manage', 'namespace' => 'Manage', ], function () { Route::get('/statistics-down', 'StatisticsController@down'); Route::get('/statistics/nums', 'StatisticsController@messageNumsStatistics'); Route::get('/statistics/today-nums', 'StatisticsController@todayNumStatistics'); Route::get('/statistics/completion-rate', 'StatisticsController@completionRateStatistics'); Route::get('/statistics/type-statistics', 'StatisticsController@typeStatistics'); Route::get('/statistics/department-nums', 'StatisticsController@departmentStatistics'); Route::get('/statistics/address-nums', 'StatisticsController@addressStatistics'); Route::get('/statistics/examines', 'ExamineController@index'); }); /** * 公共 */ Route::group([ 'prefix' => 'common', 'namespace' => 'Common', 'middleware' => ['auth:admins', 'auth.role:admin'] ], function () { //档案管理 Route::get('/archives', 'ArchiveController@index'); Route::post('/archive', 'ArchiveController@store'); Route::get('/archive', 'ArchiveController@show'); Route::put('/archive', 'ArchiveController@update'); Route::delete('/archive', 'ArchiveController@destroy'); });