123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488 |
- <?php
- /*
- * This file is part of the Jiannei/lumen-api-starter.
- *
- * (c) Jiannei <longjian.huang@foxmail.com>
- *
- * 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');
- });
|