修改智能门禁管理中, 获取识别记录表和门禁设备管理部分权限
This commit is contained in:
parent
3bd7185095
commit
f7009364fd
@ -47,6 +47,7 @@ async def control_door(request: Request, door_index_code: str = Body(), control_
|
||||
@doorController.get(
|
||||
'/list', response_model=PageResponseModel
|
||||
# , dependencies=[Depends(CheckUserInterfaceAuth('system:door:list'))]
|
||||
, dependencies=[Depends(CheckUserInterfaceAuth('access:device:list'))]
|
||||
)
|
||||
async def get_system_door_list(
|
||||
request: Request,
|
||||
@ -64,6 +65,7 @@ async def get_system_door_list(
|
||||
# 添加门禁设备
|
||||
@doorController.post('/add'
|
||||
# , dependencies=[Depends(CheckUserInterfaceAuth('system:door:add'))]
|
||||
, dependencies=[Depends(CheckUserInterfaceAuth('access:device:list'))]
|
||||
)
|
||||
@ValidateFields(validate_model='add_door')
|
||||
@Log(title='门禁设备', business_type=BusinessType.INSERT)
|
||||
@ -85,6 +87,7 @@ async def add_system_door(
|
||||
|
||||
@doorController.put('/edit'
|
||||
# , dependencies=[Depends(CheckUserInterfaceAuth('system:door:edit'))]
|
||||
, dependencies=[Depends(CheckUserInterfaceAuth('access:device:list'))]
|
||||
)
|
||||
@ValidateFields(validate_model='edit_door')
|
||||
@Log(title='门禁设备', business_type=BusinessType.UPDATE)
|
||||
@ -104,6 +107,7 @@ async def edit_system_door(
|
||||
|
||||
@doorController.delete('/{ids}'
|
||||
# , dependencies=[Depends(CheckUserInterfaceAuth('system:door:remove'))]
|
||||
, dependencies=[Depends(CheckUserInterfaceAuth('access:device:list'))]
|
||||
)
|
||||
@Log(title='门禁设备', business_type=BusinessType.DELETE)
|
||||
async def delete_system_door(request: Request, ids: str, query_db: AsyncSession = Depends(get_db)):
|
||||
|
||||
@ -21,7 +21,7 @@ identification_recordController = APIRouter(prefix='/system/identification_recor
|
||||
|
||||
@identification_recordController.get(
|
||||
'/list', response_model=PageResponseModel
|
||||
# , dependencies=[Depends(CheckUserInterfaceAuth('system:identification_record:list'))]
|
||||
, dependencies=[Depends(CheckUserInterfaceAuth('access:record:list'))]
|
||||
)
|
||||
async def get_system_identification_record_list(
|
||||
request: Request,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user