package com.sptg.estate.biz.event;

import com.sptg.estate.api.entity.ApplyUser;
import org.springframework.context.ApplicationEvent;

import java.util.List;

public class ApplyUserAddEvent extends ApplicationEvent {

    private List<ApplyUser> applyUserList;

    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public ApplyUserAddEvent(Object source, List<ApplyUser> applyUserList) {
        super(source);  //强制调用
        this.applyUserList = applyUserList;
    }

    @Override
    public Object getSource() {
        return super.getSource();
    }

    public List<ApplyUser> getApplyUserList() {
        return applyUserList;
    }

    public void setApplyUserList(List<ApplyUser> applyUserList) {
        this.applyUserList = applyUserList;
    }
}
