package com.skr.mdm.event;

import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

import java.util.Date;

/**
 * 用户设备激活事件
 * @author nfq
 * @date 2022/06/08 14:26
 */
public class UserActiveEvent extends ApplicationEvent {

    /**
     * 激活设备ID
     */
    @Getter
    @Setter
    private Integer equipmentId;

    @Getter
    @Setter
    private Integer departmentId;

    @Getter
    @Setter
    private Integer companyId;

    @Getter
    @Setter
    private Date issuedTime;

    public UserActiveEvent(Object source, Integer equipmentId, Integer companyId, Date issuedTime, Integer departmentId) {
        super(source);
        this.equipmentId = equipmentId;
        this.departmentId = departmentId;
        this.companyId = companyId;
        this.issuedTime = issuedTime;
    }
}
