|  |  | 
 |  |  | import com.doumee.core.haikang.model.param.request.event.visit.EventVisitIccmRequest; | 
 |  |  | import com.doumee.core.haikang.model.param.request.event.visit.EventVisitRequest; | 
 |  |  | import com.doumee.core.haikang.service.HKService; | 
 |  |  | import com.doumee.core.model.ApiResponse; | 
 |  |  | import com.doumee.core.model.LoginUserInfo; | 
 |  |  | import com.doumee.service.business.third.model.ApiResponse; | 
 |  |  | import com.doumee.service.business.third.model.LoginUserInfo; | 
 |  |  | import com.doumee.core.utils.Constants; | 
 |  |  | import com.doumee.core.utils.DESUtil; | 
 |  |  | import com.doumee.dao.business.model.Device; | 
 |  |  | import com.doumee.service.business.DeviceService; | 
 |  |  | import com.doumee.service.business.impl.hksync.*; | 
 |  |  | import com.doumee.service.business.impl.hksync.ferp.HkSyncOrgUserToHKServiceImpl; | 
 |  |  | import io.swagger.annotations.Api; | 
 |  |  | import io.swagger.annotations.ApiImplicitParam; | 
 |  |  | import io.swagger.annotations.ApiImplicitParams; | 
 |  |  | import io.swagger.annotations.ApiOperation; | 
 |  |  | import lombok.extern.slf4j.Slf4j; | 
 |  |  | import org.apache.commons.lang3.StringUtils; | 
 |  |  | import org.apache.shiro.authz.annotation.RequiresPermissions; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.data.redis.core.RedisTemplate; | 
 |  |  | import org.springframework.web.bind.annotation.*; | 
 |  |  | import springfox.documentation.annotations.Cacheable; | 
 |  |  |  | 
 |  |  | import javax.servlet.http.HttpServletRequest; | 
 |  |  | import javax.servlet.http.HttpServletResponse; | 
 |  |  | 
 |  |  |     private HkSyncPrivilegeServiceImpl hkSyncPrivilegeService; | 
 |  |  |     @Autowired | 
 |  |  |     private HkSyncPushServiceImpl hkSyncPushService; | 
 |  |  |     @Autowired | 
 |  |  |     private HkSyncOrgUserToHKServiceImpl hkSyncOrgUserToHKService; | 
 |  |  |     @Autowired | 
 |  |  |     private HkSyncNoticeServiceImpl hkSyncNoticeService; | 
 |  |  |     @Autowired | 
 |  |  | 
 |  |  |         return ApiResponse.success(result); | 
 |  |  |     } | 
 |  |  |     @PreventRepeat | 
 |  |  |     @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){ |