package com.sdtool.common.entity.convert;

import com.sdtool.common.entity.system.Dept;
import com.sweetfish.util.Reproduce;

import java.util.Arrays;

public class EntityReproduce {

    private static final String[] deptIgnoreFields = new String[]{"id", "status"};
    public static final Reproduce<Dept, Dept> deptReproduce = Reproduce.create(Dept.class,
            Dept.class,
            (t) -> Arrays.stream(deptIgnoreFields).noneMatch(t::equalsIgnoreCase)
    );

}
