12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?php
- use App\Http\Controllers\Admin\AdminController;
- use App\Http\Controllers\Admin\ClassinfyController;
- use App\Http\Controllers\Admin\ClassinfyRepairController;
- use App\Http\Controllers\Admin\UserController;
- use App\Http\Controllers\HomeSiteController;
- 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!
- |
- */
- ///** @var TYPE_NAME $api */
- //$api = app("Dingo\Api\Routing\Router");
- Route::group(['middleware'=>'check_token'],function ($api) {
- Route::get('userinfo', [AdminController::class,'userinfo']);
- Route::group(['prefix' => 'Login'], function($api) {
- //获取后台权限
- Route::get('GetRole', [AdminController::class,'GetRole']);
- });
- //用户相关信息
- Route::group(['prefix' => 'User'], function($api) {
- //获取后台权限
- Route::get('GetUserInfo', [UserController::class,'GetUserInfo']);
- Route::get('GetUserInfos', [UserController::class,'GetUserInfos']);
- Route::post('UpdateUserInfo', [UserController::class,'UpdateUserInfo']);
- Route::delete('DeleteUserInfo', [UserController::class,'DeleteUserInfo']);
- });
- //招工信息
- Route::group(['prefix'=>'Job'],function($qpi){
- //获取招工列表信息
- Route::get('');
- });
- //分类
- Route::group(['prefix'=>'Classify'],function($qpi){
- //获取招工列表信息
- Route::get('GetClassify',[ClassinfyController::class,'GetClassify']);
- Route::post('AddClassify',[ClassinfyController::class,'AddClassify']);
- Route::get('DisableClassify',[ClassinfyController::class,'DisableClassify']);
- });
- //分类
- Route::group(['prefix'=>'ClassifyRepair'],function($qpi){
- //获取招工列表信息
- Route::get('GetClassify',[ClassinfyRepairController::class,'GetClassify']);
- Route::post('AddClassify',[ClassinfyRepairController::class,'AddClassify']);
- Route::post('ClassifyUploadImg',[ClassinfyRepairController::class,'ClassifyUploadImg']);
- Route::post('UpdateClassify',[ClassinfyRepairController::class,'UpdateClassify']);
- Route::get('DisableClassify',[ClassinfyRepairController::class,'DisableClassify']);
- });
- });
- Route::group(['prefix' => 'Login'], function($api) {
- /*登录**/
- $api->post('Login', [AdminController::class,'AdminLogin']);
- $api->post('updateAdmin', [AdminController::class,'updateAdmin']);
- });
|