|
@@ -80,6 +80,14 @@ public class AppSafeServerController {
|
|
|
return success(BeanUtils.toBean(list, AppSafeServerRespVO.class));
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("/servers")
|
|
|
+ @Operation(summary = "获得机构下所有安防后端设备")
|
|
|
+ @Parameter(name = "orgId", description = "机构id(部门ID)", required = true, example = "1")
|
|
|
+ public CommonResult<List<AppSafeServerRespVO>> getServers(@RequestParam("orgId") Long orgId) {
|
|
|
+ List<SafeServerDO> list = serverService.getServersByOrgId(orgId);
|
|
|
+ return success(BeanUtils.toBean(list, AppSafeServerRespVO.class));
|
|
|
+ }
|
|
|
+
|
|
|
@GetMapping("/export-excel")
|
|
|
@Operation(summary = "导出安防后端设备 Excel")
|
|
|
@ApiAccessLog(operateType = EXPORT)
|