get('/user', function (Request $request) { return $request->user(); }); Route::any('login', 'Api\LoginController@login'); Route::any('test', 'Api\TestController@aa'); //文件获取 Route::any('uploadFiles/{file_name}', 'Api\FileUploadController@getFile'); //获取导出规则 Route::any('getExport/{file_name}','Api\SysMenuController@getExport'); Route::group(['middleware'=> ['checkLogin']],function ($route){ //oa $route->any('oaGetData', 'Api\OaController@oaGetData'); $route->any('getOperationList', 'Api\OperationLogController@getOperationList'); $route->any('createOaOrder', 'Api\OaController@createOaOrder'); $route->any('oaCheck', 'Api\OaController@oaCheck'); $route->any('oaOrderList', 'Api\OaController@oaOrderList'); $route->any('oaList', 'Api\OaController@oaList'); $route->any('oaEdit', 'Api\OaController@oaEdit'); $route->any('oaDetail', 'Api\OaController@oaDetail'); $route->any('setOperationList', 'Api\OperationLogController@setOperationList'); $route->any('oaOrderState', 'Api\OaController@oaOrderState'); $route->any('oaGetTeamDetail', 'Api\OaController@oaGetTeamDetail'); $route->any('checkAllOver', 'Api\OaController@checkAllOver'); $route->any('oaCheckMove', 'Api\OaController@oaCheckMove'); $route->any('oaSubUserDetail', 'Api\OaController@oaSubUserDetail'); $route->any('oaSubRemark', 'Api\OaController@oaSubRemark'); //审批流参数 $route->any('oaParamGet','Api\OaController@oaParamGet'); $route->any('getHeaderSetting', 'Api\HeaderWordController@getHeaderSettings'); $route->any('excelExport', 'Api\ExcelController@excelExport'); $route->any('HeaderSettingsAdd', 'Api\HeaderWordController@add'); $route->any('HeaderSettingsDetail', 'Api\HeaderWordController@detail'); //文件上传统一方法 $route->any('uploadFile', 'Api\FileUploadController@uploadFile'); $route->any('menuAdd', 'Api\SysMenuController@add'); $route->any('menuEdit', 'Api\SysMenuController@edit'); $route->any('menuDel', 'Api\SysMenuController@del'); $route->any('menuList', 'Api\SysMenuController@menuList'); $route->any('menuMove', 'Api\SysMenuController@menuMove'); $route->any('employeeAdd', 'Api\EmployeeController@employeeAdd'); $route->any('employeeEdit', 'Api\EmployeeController@employeeEdit'); $route->any('employeeEditOther', 'Api\EmployeeController@employeeEditOther'); $route->any('employeeDel', 'Api\EmployeeController@employeeDel'); $route->any('employeeDetail', 'Api\EmployeeController@employeeDetail'); $route->any('employeeList', 'Api\EmployeeController@employeeList'); $route->any('departAdd', 'Api\EmployeeController@departAdd'); $route->any('departEdit', 'Api\EmployeeController@departEdit'); $route->any('departDel', 'Api\EmployeeController@departDel'); $route->any('departList', 'Api\EmployeeController@departList'); $route->any('roleAdd', 'Api\EmployeeController@roleAdd'); $route->any('roleEdit', 'Api\EmployeeController@roleEdit'); $route->any('roleDel', 'Api\EmployeeController@roleDel'); $route->any('roleList', 'Api\EmployeeController@roleList'); $route->any('roleDetail', 'Api\EmployeeController@roleDetail'); $route->any('roleMenu', 'Api\EmployeeController@roleMenu'); $route->any('teamAdd', 'Api\EmployeeController@teamAdd'); $route->any('teamEdit', 'Api\EmployeeController@teamEdit'); $route->any('teamDel', 'Api\EmployeeController@teamDel'); $route->any('teamList', 'Api\EmployeeController@teamList'); $route->any('teamDetail', 'Api\EmployeeController@teamDetail'); $route->any('employeeDepart', 'Api\EmployeeController@employeeDepart'); $route->any('employeeTeam', 'Api\EmployeeController@employeeTeam'); $route->any('employeeRole', 'Api\EmployeeController@employeeRole'); $route->any('getEmployeeImg', 'Api\EmployeeController@getEmployeeImg'); //组织 $route->any('organizationList', 'Api\OrganizationController@organizationList'); $route->any('organizationEdit', 'Api\OrganizationController@organizationEdit'); $route->any('organizationAdd', 'Api\OrganizationController@organizationAdd'); $route->any('organizationDel', 'Api\OrganizationController@organizationDel'); $route->any('organizationDetail', 'Api\OrganizationController@organizationDetail'); //客户供应商 $route->any('customerSupplyList', 'Api\CustomerSupplyController@customerSupplyList'); $route->any('customerSupplyEdit', 'Api\CustomerSupplyController@customerSupplyEdit'); $route->any('customerSupplyAdd', 'Api\CustomerSupplyController@customerSupplyAdd'); $route->any('customerSupplyDel', 'Api\CustomerSupplyController@customerSupplyDel'); $route->any('customerSupplyDetail', 'Api\CustomerSupplyController@customerSupplyDetail'); //解除供应商绑定 $route->any('delWxBind', 'Api\WeixinController@delWxBind'); //维度选项 $route->any('dimensionList', 'Api\DimensionController@dimensionList'); $route->any('dimensionEdit', 'Api\DimensionController@dimensionEdit'); $route->any('dimensionAdd', 'Api\DimensionController@dimensionAdd'); $route->any('dimensionDel', 'Api\DimensionController@dimensionDel'); $route->any('dimensionDetail', 'Api\DimensionController@dimensionDetail'); //量化 $route->any('quantizationList', 'Api\QuantizationController@quantizationList'); $route->any('quantizationEdit', 'Api\QuantizationController@quantizationEdit'); $route->any('quantizationAdd', 'Api\QuantizationController@quantizationAdd'); $route->any('quantizationDel', 'Api\QuantizationController@quantizationDel'); $route->any('quantizationDetail', 'Api\QuantizationController@quantizationDetail'); //订单 $route->any('orderList', 'Api\OrderController@orderList'); $route->any('orderEdit', 'Api\OrderController@orderEdit'); $route->any('orderAdd', 'Api\OrderController@orderAdd'); $route->any('orderDel', 'Api\OrderController@orderDel'); $route->any('orderDetail', 'Api\OrderController@orderDetail'); //创建量化 $route->any('quantizationCreateCapList', 'Api\QuantizationController@quantizationCreateList'); $route->any('quantizationCreateCooList', 'Api\QuantizationController@quantizationCreateList'); $route->any('quantizationCreateManList', 'Api\QuantizationController@quantizationCreateList'); $route->any('quantizationCreateEdit', 'Api\QuantizationController@quantizationCreateEdit'); $route->any('quantizationCreateAdd', 'Api\QuantizationController@quantizationCreateAdd'); $route->any('quantizationCreateDel', 'Api\QuantizationController@quantizationCreateDel'); $route->any('quantizationCreateDetail', 'Api\QuantizationController@quantizationCreateDetail'); //催单 $route->any('reminderList', 'Api\OrderController@reminderList'); $route->any('reminderEdit', 'Api\OrderController@reminderEdit'); $route->any('reminderAdd', 'Api\OrderController@reminderAdd'); $route->any('reminderDel', 'Api\OrderController@reminderDel'); $route->any('reminderDetail', 'Api\OrderController@reminderDetail'); $route->any('reminderSendWx', 'Api\OrderController@reminderSendWx'); //待办 $route->any('toDoList', 'Api\OrderController@toDoList'); $route->any('toDoEdit', 'Api\OrderController@toDoEdit'); $route->any('toDoAdd', 'Api\OrderController@toDoAdd'); $route->any('toDoDel', 'Api\OrderController@toDoDel'); $route->any('toDoDetail', 'Api\OrderController@toDoDetail'); $route->any('toDoFinished', 'Api\OrderController@toDoFinished'); //费用 $route->any('costManagementList', 'Api\CostManagementController@costManagementList'); $route->any('costManagementEdit', 'Api\CostManagementController@costManagementEdit'); $route->any('costManagementAdd', 'Api\CostManagementController@costManagementAdd'); $route->any('costManagementDel', 'Api\CostManagementController@costManagementDel'); $route->any('costManagementDetail', 'Api\CostManagementController@costManagementDetail'); //用户指引 $route->any('userGuideList', 'Api\UserGuideController@userGuideList'); $route->any('userGuideEdit', 'Api\UserGuideController@userGuideEdit')->middleware('OssFileDeal'); $route->any('userGuideAdd', 'Api\UserGuideController@userGuideAdd')->middleware('OssFileDeal'); $route->any('userGuideDel', 'Api\UserGuideController@userGuideDel')->middleware('OssFileDeal'); $route->any('userGuideDetail', 'Api\UserGuideController@userGuideDetail'); //报表 $route->any('valueStatistics', 'Api\StatisticsController@valueStatistics'); //获取默认表头 $route->any('getTableHead','Api\TableHeadController@tableHeadGet'); //设置表头 $route->any('setTableHead','Api\TableHeadController@tableHeadAdd'); //获取设置搜索项 $route->any('getTableSearch','Api\TableHeadController@tableSearchGet'); //设置搜索项 $route->any('setTableSearch','Api\TableHeadController@tableSearchAdd'); //获取默认打开筛选 $route->any('getFilter','Api\TableHeadController@filterGet'); //设置默认打开筛选 $route->any('setFilter','Api\TableHeadController@filterAdd'); //获取下载模板 $route->any('getTableTitleXls','Api\ImportController@getTableTitleXls'); //导入统一方法 $route->any('importAll','Api\ImportController@importAll'); //导出统一方法 $route->any('exportFile', 'Api\ExportFileController@exportFile'); });