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.

29 lines
1.2 KiB

10 months ago
<?php
use think\facade\Route;
/**
* 摄像头接口模块
*/
Route::group(function () {
/** 摄像头接口 */
Route::group(function () {
//摄像头列表
Route::get('ipc/list', 'v1.ipc.Ipc/index')->option(['real_name' => '摄像头列表']);
//创建关联班级表单
Route::get('ipc/create', 'v1.ipc.Ipc/create')->option(['real_name' => '创建关联班级表单']);
//保存关联班级表单
Route::post('ipc/save', 'v1.ipc.Ipc/save')->option(['real_name' => '保存关联班级表单']);
//获取录像计划详情
Route::get('ipc/getRecordTime', 'v1.ipc.Ipc/getRecordTime')->option(['real_name' => '获取录像计划详情']);
//设置录像数据
Route::post('ipc/setRecordTime', 'v1.ipc.Ipc/setRecordTime')->option(['real_name' => '更新录像计划以及时间模版']);
})->option(['parent' => 'Ipc', 'cate_name' => '摄像头接口']);
})->middleware([
\app\http\middleware\AllowOriginMiddleware::class,
\app\adminapi\middleware\AdminAuthTokenMiddleware::class,
\app\adminapi\middleware\AdminCheckRoleMiddleware::class,
\app\adminapi\middleware\AdminLogMiddleware::class
])->option(['mark' => 'ipc', 'mark_name' => '摄像头管理']);