package com.bonus.core.device.door.api;

import com.bonus.core.device.door.enums.EditUserToDeviceEnum;
import com.bonus.core.device.door.enums.TriggerTypeEnum;
import com.bonus.core.device.door.service.DcCustDoorPwdService;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class DcPushUserDataServiceApi {
   @Resource
   @Lazy
   private DcCustDoorPwdService dcCustDoorPwdService;


   public void editUser(Long custId) {
      this.dcCustDoorPwdService.checkUserToDevice(custId, TriggerTypeEnum.EDIT, EditUserToDeviceEnum.PUSH);
   }
}
