package com.bcxin.tenant.open.domains.criterias;

import com.bcxin.tenant.open.infrastructures.criterias.CriteriaAbstract;
import lombok.Getter;

@Getter
public class ProjectTeamMemberCriteria extends CriteriaAbstract {
    private final String idCardNo;
    private final String personType;
    private final String companyName;
    private final String projectId;

    public ProjectTeamMemberCriteria(
            int pageIndex,
            int pageSize,
            String idCardNo, String personType, String companyName, String projectId) {
        super(pageIndex,pageSize);
        this.idCardNo = idCardNo;
        this.personType = personType;
        this.companyName = companyName;
        this.projectId = projectId;
    }

    public static ProjectTeamMemberCriteria create(
            int pageIndex,
            int pageSize,
            String idCardNo, String personType, String companyName, String projectId) {
        return new ProjectTeamMemberCriteria(pageIndex,pageSize, idCardNo, personType, companyName, projectId);
    }
}
