| | |
| | | import com.doumee.service.business.impl.hksync.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | public class HkSyncCloudController extends BaseController { |
| | | |
| | | @Autowired |
| | | private HkSyncPlatformsServiceImpl hkSyncPlatformsService; |
| | | @Autowired |
| | | private HkSyncDeviceServiceImpl hkSyncDeviceService; |
| | | @Autowired |
| | | private HkSyncParkServiceImpl hkSyncParkService; |
| | |
| | | private HkSyncPushServiceImpl hkSyncPushService; |
| | | @Autowired |
| | | private HkSyncLoginAuthServiceImpl hkSyncLoginAuthService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("【海康】全量同步月台信息接口") |
| | | @PostMapping("/syncPlatforms") |
| | | @CloudRequiredPermission("business:hksync:platforms") |
| | | public ApiResponse syncPlatforms(@RequestBody PlatformsListRequest param) { |
| | | String result = hkSyncPlatformsService.syncPlatforms(param); |
| | | return ApiResponse.success(result); |
| | | } |
| | | @PreventRepeat |
| | | @ApiOperation("【海康】全量同步月台状态信息接口") |
| | | @PostMapping("/syncPlatformStatus") |
| | | @CloudRequiredPermission("business:hksync:platforms") |
| | | public ApiResponse syncPlatformStatus(@RequestBody PlatformStatusRequest param) { |
| | | String result = hkSyncPlatformsService.getPlatformStatus(param); |
| | | return ApiResponse.success(result); |
| | | } |
| | | @PreventRepeat |
| | | @ApiOperation("【海康】全量同步门禁设备接口") |
| | | @PostMapping("/syncDevices") |