get('/user', function (Request $request) { return $request->user(); }); Route::any('login', 'Api\LoginController@login'); Route::any('test', 'Api\TestController@test'); //文件获取 Route::any('uploadFiles/{file_name}', 'Api\FileUploadController@getFile'); //获取导出规则 Route::any('getExport/{file_name}','Api\SysMenuController@getExport'); //钉钉登录 Route::any('getUserByCode','Api\DingTalkController@getUserByCode'); Route::any('getAccessToken','Api\DingTalkController@getAccessToken'); Route::any('getTemplateFields','Api\DingTalkController@getTemplateFields'); Route::any('dinCallback','Api\DingTalkController@dinCallback'); Route::any('dinCallbackH','Api\DingTalkController@dinCallbackH'); Route::any('eWxCheck', 'Api\EnterpriseWechatController@serve'); Route::group(['middleware'=> ['checkLogin']],function ($route){ //文件上传统一方法 $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('getTableHead','Api\TableHeadController@tableHeadGet'); //设置表头 $route->any('setTableHead','Api\TableHeadController@tableHeadAdd'); //获取设置搜索项 $route->any('getTableSearch','Api\TableHeadController@tableSearchGet'); //设置搜索项 $route->any('setTableSearch','Api\TableHeadController@tableSearchAdd'); //获取下载模板 $route->any('getTableTitleXls','Api\ImportController@getTableTitleXls'); //导入统一方法 $route->any('importAll','Api\ImportController@importAll'); //导出统一方法 $route->any('exportFile', 'Api\ExportFileController@exportFile'); //采购单 $route->any('purchaseOrder', 'Api\U8Controller@purchaseOrder'); $route->any('purchaseOrderDetail', 'Api\U8Controller@purchaseOrderDetail'); //采购请购单 $route->any('purchaseRequisition', 'Api\U8Controller@purchaseRequisition'); $route->any('purchaseRequisitionDetail', 'Api\U8Controller@purchaseRequisitionDetail'); //采购入库单 $route->any('purchaseInOrder', 'Api\U8Controller@purchaseInOrder'); $route->any('purchaseInOrderDetail', 'Api\U8Controller@purchaseInOrderDetail'); //创建审批 $route->any('createProcessInstance','Api\DingTalkController@createProcessInstance'); //获取待我审核 $route->any('getTodoProcessList','Api\DingTalkController@getTodoProcessList'); //审核 $route->any('executeProcess','Api\DingTalkController@executeProcess'); //审核中 | 已审核 $route->any('recordList','Api\U8Controller@recordList'); // U8数据获取 ----------------------------------------------------- //存货分类树结构 要用最后一层 $route->any('inventoryClassTree', 'Api\U8Controller@inventoryClassTree'); //计量单位组 $route->any('getUnitGroups', 'Api\U8Controller@getUnitGroups'); //计量单位 $route->any('getComputationUnitList', 'Api\U8Controller@getComputationUnitList'); //供应商分类树结构 要用最后一层 $route->any('vendorClassTree', 'Api\U8Controller@vendorClassTree'); //供应商档案(用友) $route->any('vendorU8List', 'Api\U8Controller@vendorU8List'); //存货库存列表(用友) $route->any('stockU8List', 'Api\U8Controller@stockList'); //采购类型 $route->any('getPurchaseTypeList', 'Api\U8Controller@getPurchaseTypeList'); //存货档案 $route->any('inventoryU8List', 'Api\U8Controller@inventoryU8List'); //仓库档案 $route->any('warehouseU8List', 'Api\U8Controller@warehouseU8List'); // U8数据获取 ----------------------------------------------------- //存货新增编辑(到本地) $route->any('inventoryAdd', 'Api\U8Controller@inventoryAdd'); $route->any('inventoryEdit', 'Api\U8Controller@inventoryEdit'); $route->any('inventoryDel', 'Api\U8Controller@inventoryDel'); $route->any('inventoryDetail', 'Api\U8Controller@inventoryDetail'); $route->any('inventoryList', 'Api\U8Controller@inventoryList'); //供应商新增编辑(到本地) $route->any('vendorAdd', 'Api\U8Controller@vendorAdd'); $route->any('vendorEdit', 'Api\U8Controller@vendorEdit'); $route->any('vendorDel', 'Api\U8Controller@vendorDel'); $route->any('vendorDetail', 'Api\U8Controller@vendorDetail'); $route->any('vendorList', 'Api\U8Controller@vendorList'); //请购单新增编辑(到本地) $route->any('purchaseRequisitionAdd', 'Api\U8Controller@purchaseRequisitionAdd'); $route->any('purchaseRequisitionEdit', 'Api\U8Controller@purchaseRequisitionEdit'); $route->any('purchaseRequisitionDel', 'Api\U8Controller@purchaseRequisitionDel'); $route->any('purchaseRequisitionMyDetail', 'Api\U8Controller@purchaseRequisitionMyDetail'); $route->any('purchaseRequisitionList', 'Api\U8Controller@purchaseRequisitionList'); //u8请购单 $route->any('purchaseRequisitionU8List', 'Api\U8Controller@purchaseRequisitionU8List'); //请购明细 $route->any('getRequisitionDetails', 'Api\U8Controller@getRequisitionDetails'); //采购订单新增编辑(到本地) $route->any('purchaseOrderAdd', 'Api\U8Controller@purchaseOrderAdd'); $route->any('purchaseOrderEdit', 'Api\U8Controller@purchaseOrderEdit'); $route->any('purchaseOrderDel', 'Api\U8Controller@purchaseOrderDel'); $route->any('purchaseOrderMyDetail', 'Api\U8Controller@purchaseOrderMyDetail'); $route->any('purchaseOrderList', 'Api\U8Controller@purchaseOrderList'); //u8采购订单 $route->any('purchaseOrderU8List', 'Api\U8Controller@purchaseOrderU8List'); //u8采购订单明细 $route->any('getPurchaseOrderDetails', 'Api\U8Controller@getPurchaseOrderDetails'); //采购入库单新增编辑(到本地) $route->any('purchaseOrderInAdd', 'Api\U8Controller@purchaseOrderInAdd'); $route->any('purchaseOrderInEdit', 'Api\U8Controller@purchaseOrderInEdit'); $route->any('purchaseOrderInDel', 'Api\U8Controller@purchaseOrderInDel'); $route->any('purchaseOrderInMyDetail', 'Api\U8Controller@purchaseOrderInMyDetail'); $route->any('purchaseOrderInList', 'Api\U8Controller@purchaseOrderInList'); //重新提交 $route->any('submitAgain', 'Api\U8Controller@submitAgain'); //获取钉钉人员列表 $route->any('ddEmployeeList', 'Api\U8Controller@ddEmployeeList'); $route->any('getField', 'Api\U8Controller@getField'); //设置隐藏字段 $route->any('setFieldAdd', 'Api\U8Controller@setFieldAdd'); $route->any('setFieldEdit', 'Api\U8Controller@setFieldEdit'); //隐藏字段列表 $route->any('fieldList', 'Api\U8Controller@fieldList'); //隐藏字段详情 $route->any('fieldDetail', 'Api\U8Controller@fieldDetail'); $route->any('fieldDel', 'Api\U8Controller@fieldDel'); });