package jnpf.model.cultivate.dto.certificate;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 *
 * 证书
 *
 * @author hao.peng
 * @since 2023年12月17日12:28:06
 */
@Data
public class FtbCertificateForm implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "前缀")
    private String prefix;

    @Schema(description = "有效期类型（1按月，2按天,0,长期有效）")
    private Integer expireType;

    @Schema(description = "有效期")
    private Integer expireTime;

    @Schema(description = "状态（0已下架，1上架中）")
    private Integer status;

    @Schema(description = "模板图片地址")
    private String template;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "属性像素点位置")
    private String points;

    @Schema(description = "证书描述")
    @Length(max = 50 , message = "证书描述长度不能超过50")
    private String reason;

    /**
     * 激励语
     */
    @Length(max = 20 , message = "激励语长度不能超过20")
    private String motivational;


}