海工商新版后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

62 lines
2.7 KiB

<?php
use App\Admin\Extensions\Exporter\ImportCompletedOfflineStep;
use App\Admin\Extensions\Exporter\ImportCompletedOnLineAllStepView;
use App\Admin\Extensions\Exporter\ImportCompletedOnLineStepView;
use App\Admin\Extensions\Exporter\ImportUserBaseInfo;
use App\Http\Controllers\AllocationDormitoryApi;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| 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:sanctum')->get('/user', function (Request $request) {
return $request->user();
});
Route::any("getMultipleWorldsByList", [AllocationDormitoryApi::class, "getMultipleWorldsByList"]);
/**
* 详情
*/
Route::any("getSpeciality", [AllocationDormitoryApi::class, "getSpeciality"]);
Route::any("getSex", [AllocationDormitoryApi::class, "getSex"]);
Route::any("getDormitoryType", [AllocationDormitoryApi::class, "getDormitoryType"]);
Route::any("getMultipleWorlds", [AllocationDormitoryApi::class, "getMultipleWorlds"]);
Route::any("getLiving", [AllocationDormitoryApi::class, "getLiving"]);
Route::any("getBuilding", [AllocationDormitoryApi::class, "getBuilding"]);
Route::any("getFloor", [AllocationDormitoryApi::class, "getFloor"]);
Route::any("getDormitoryNumber", [AllocationDormitoryApi::class, "getDormitoryNumber"]);
Route::any("getBed", [AllocationDormitoryApi::class, "getBed"]);
/**
* 联动
*/
Route::any("getSpecialityLoad", [AllocationDormitoryApi::class, "getSpecialityLoad"]);
Route::any("getDormitoryTypeLoad", [AllocationDormitoryApi::class, "getDormitoryTypeLoad"]);
Route::any("getMultiplWorldsLoad", [AllocationDormitoryApi::class, "getMultiplWorldsLoad"]);
Route::any("getLivingAreaLoad", [AllocationDormitoryApi::class, "getLivingAreaLoad"]);
Route::any("getBuildingLoad", [AllocationDormitoryApi::class, "getBuildingLoad"]);
Route::any("getFloorLoad", [AllocationDormitoryApi::class, "getFloorLoad"]);
Route::any("getDormitoryNumberLoad", [AllocationDormitoryApi::class, "getDormitoryNumberLoad"]);
Route::any("getBedLoad", [AllocationDormitoryApi::class, "getBedLoad"]);
/**
* 数据导出
*/
Route::prefix("import")->group(function(){
Route::any("completedOnLineStep", [ImportCompletedOnLineStepView::class, "export"]);
Route::any("completedOffLineStep", [ImportCompletedOfflineStep::class, "export"]);
Route::any("completedOffLineAllStep", [ImportCompletedOnLineAllStepView::class, "export"]);
Route::any("userBaseInfoExcel", [ImportUserBaseInfo::class, "export"]);
});