RequestVo.java 1.33 KB
package com.viontech.match.entity.vo;

import com.viontech.keliu.model.FaceFeature;
import com.viontech.keliu.model.Person;
import com.viontech.match.enumeration.CommandEnum;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.List;

/**
 * .
 *
 * @author 谢明辉
 * @date 2020/11/27
 */

@Getter
@Setter
public class RequestVo {
    /** 公用 */
    private CommandEnum command;
    private String rid;
    private String poolId;

    /** 增加修改特征池时使用 */
    private Integer poolType;
    private List<Person> personPool;
    private Integer updateType;

    /** 删除时使用 */
    private List<HashMap<String, String>> personIds;
    private Integer flushPool;

    /** 查询时使用 */
    private Integer listAll;


    /** 人员匹配时用 */
    private Integer personType;
    private Person person;
    private String personPoolId;
    private List<String> unionPersonPoolId;

    private FaceFeature newFaceFeature;

    public void setPoolId(String poolId) {
        this.poolId = poolId.toLowerCase();
    }

    public Integer getFlushPool() {
        if (flushPool == null) {
            flushPool = 1;
        }
        return flushPool;
    }

    public Integer getListAll() {
        if (listAll == null) {
            listAll = 1;
        }
        return listAll;
    }
}