智慧教务系统
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.
 
 
 
 
 
 

61 lines
2.0 KiB

<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的多应用管理平台
// +----------------------------------------------------------------------
// | 官方网址:https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
use think\facade\Route;
use app\adminapi\middleware\AdminCheckRole;
use app\adminapi\middleware\AdminCheckToken;
use app\adminapi\middleware\AdminLog;
// USER_CODE_BEGIN -- departments
Route::group('departments', function () {
//部门列表
Route::get('departments', 'departments.Departments/lists');
//部门详情
Route::get('departments/:id', 'departments.Departments/info');
//添加部门
Route::post('departments', 'departments.Departments/add');
//编辑部门
Route::put('departments/:id', 'departments.Departments/edit');
//删除部门
Route::delete('departments/:id', 'departments.Departments/del');
})->middleware([
AdminCheckToken::class,
AdminCheckRole::class,
AdminLog::class
]);
// USER_CODE_END -- departments
// USER_CODE_BEGIN -- departments
Route::group('departments', function () {
//部门列表
Route::get('departments', 'departments.Departments/lists');
//部门详情
Route::get('departments/:id', 'departments.Departments/info');
//添加部门
Route::post('departments', 'departments.Departments/add');
//编辑部门
Route::put('departments/:id', 'departments.Departments/edit');
//删除部门
Route::delete('departments/:id', 'departments.Departments/del');
Route::get('departments_all','departments.Departments/getDepartmentsAll');
})->middleware([
AdminCheckToken::class,
AdminCheckRole::class,
AdminLog::class
]);
// USER_CODE_END -- departments