package jnpf.model.storecertificatephoto.vo;

import jnpf.model.storecertificatephoto.po.StoreCertificatePhotoEntity;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 门店证件照返回参数
 */
@Data
public class StoreCertificatePhotoIdNameVO {

    /**
     * 主键ID
     */
    private String id;

    /**
     * 证照名称
     */
    private String certificateName;

    /**
     * 转换为返回对象
     *
     * @param entity 门店证件照实体
     * @return 返回对象
     */
    public static StoreCertificatePhotoIdNameVO convert(StoreCertificatePhotoEntity entity) {
        if (entity == null) {
            return null;
        }
        StoreCertificatePhotoIdNameVO vo = new StoreCertificatePhotoIdNameVO();
        vo.setId(entity.getId());
        vo.setCertificateName(entity.getCertificateName());
        return vo;
    }
}
