package com.bcxin.tenant.domain.readers.criterias;

import com.bcxin.Infrastructures.CriteriaAbstract;
import lombok.Getter;

@Getter
public class EmployeeRecordCriteria extends CriteriaAbstract {
    private final String organizationId;
    private final String employeeId;

    public EmployeeRecordCriteria(String organizationId, String employeeId, int pageIndex, int pageSize) {
        super(pageIndex, pageSize);

        this.organizationId = organizationId;
        this.employeeId = employeeId;
    }

    public static EmployeeRecordCriteria create(String organizationId, String employeeId, int pageIndex, int pageSize) {
        return new EmployeeRecordCriteria(organizationId, employeeId, pageIndex, pageSize);
    }
}
