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

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

@Getter
public class OrganizationAdminCriteria extends CriteriaAbstract {
    private final String keyword;
    private final String organizationId;

    public OrganizationAdminCriteria(String keyword, String organizationId, int pageIndex, int pageSize) {
        super(pageIndex, pageSize);

        this.keyword = keyword;
        this.organizationId = organizationId;
    }

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