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

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

@Getter
public class MyExternalMemberRecordCriteria extends CriteriaAbstract {
    private final String tenantUserId;
    private final String keyword;

    public MyExternalMemberRecordCriteria(int pageIndex,int pageSize,String tenantUserId,String keyword) {
        super(pageIndex, pageSize);
        this.tenantUserId = tenantUserId;
        this.keyword = keyword;
    }

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