| | |
| | | return ApiResponse.success(result); |
| | | } |
| | | @PreventRepeat |
| | | @ApiOperation("【海康】保持海康用户绑定openid") |
| | | @ApiOperation("【海康】保存海康用户绑定openid") |
| | | @PostMapping("/saveHkUserOpenid") |
| | | public ApiResponse syncHkUserOpenid( @RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | String result = hkSyncOrgUserToHKService.syncHkUserOpenid(this.getLoginUser(token).getId()); |
| | | return ApiResponse.success(result); |
| | | } |
| | | @PreventRepeat |
| | | @ApiOperation("【海康】清空海康用户绑定openid") |
| | | @PostMapping("/delHkUserOpenid") |
| | | @LoginNoRequired |
| | | public ApiResponse delHkUserOpenid( @RequestBody UserOpenidSaveRequest param){ |
| | | String result = hkSyncOrgUserToHKService.delHkUserOpenid(param); |
| | | return ApiResponse.success(result); |
| | | } |
| | | @PreventRepeat |
| | | @ApiOperation("【海康】获取组件授权登录地址接口") |
| | | @PostMapping("/getServiceUrl") |
| | | public ApiResponse getServiceUrl(@RequestBody HKGetServiceLoginUrlRequest param,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |