package com.xinelu.manage.vo.hospitalpersoncertificate;

import com.xinelu.common.custominterface.Insert;
import com.xinelu.common.custominterface.Update;
import com.xinelu.manage.dto.hospitalpersoncertificate.CertificateUrlDTO;
import java.io.Serializable;
import java.util.List;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author ljh
 * @version 1.0
 * Create by 2023/2/24 15:18
 */
@Data
public class HospitalPersonCertificateVO implements Serializable {
    private static final long serialVersionUID = -4426314380828069789L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 科室人员表id
     */
    @NotNull(message = "科室人员表id不能为空", groups = { Insert.class, Update.class})
    private Long hospitalPersonId;

    /**
     * 证书名称
     */
    @NotBlank(message = "科室人员表id不能为空", groups = {Insert.class, Update.class})
    private String certificateName;

    /**
     * 证书编号
     */
    private String certificateCode;

    /**
     * 证书图片存放路径
     */
    private String certificateUrl;

    /**
     * 证书显示顺序
     */
    @NotNull(message = "证书显示顺序不能为空", groups = {Insert.class, Update.class})
    private Integer certificateSort;

    /**
     * 人员名称
     */
    private String personName;

    /**
     * 证书图片存放路径集合
     */
    private List<CertificateUrlDTO> certificateUrlList;
}
