| | |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.haikang.model.param.request.AcsDeviceListRequest; |
| | | import com.doumee.core.haikang.model.param.request.ParkListRequest; |
| | | import com.doumee.core.haikang.service.HKService; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageData; |
| | |
| | | private HkSyncService hkSyncService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("全量同步门禁设备接口") |
| | | @ApiOperation("【海康】全量同步门禁设备接口") |
| | | @PostMapping("/getDevices") |
| | | @RequiresPermissions("business:hksync:device") |
| | | public ApiResponse getDevices(@RequestBody AcsDeviceListRequest param) { |
| | | hkSyncService.syncHkDevices(param); |
| | | return ApiResponse.success(null); |
| | | String result = hkSyncService.syncHkDevices(param); |
| | | return ApiResponse.success(result); |
| | | } |
| | | @PreventRepeat |
| | | @ApiOperation("【海康】全量同步停车库接口") |
| | | @PostMapping("/getDevices") |
| | | @RequiresPermissions("business:hksync:park") |
| | | public ApiResponse getDevices(@RequestBody ParkListRequest param) { |
| | | String result = hkSyncService.syncHkParks(param); |
| | | return ApiResponse.success(result); |
| | | } |
| | | |
| | | } |