| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- <?php
- use Illuminate\Http\Request;
- /*
- |--------------------------------------------------------------------------
- | API Routes
- |--------------------------------------------------------------------------
- |
- | Here is where you can register API routes for your application. These
- | routes are loaded by the RouteServiceProvider within a group which
- | is assigned the "api" middleware group. Enjoy building your API!
- |
- */
- Route::middleware('auth:api')->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('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('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('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');
- });
|