package com.zbkj.common.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 文章管理 Request

 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="VideoRequest对象", description="视频管理表")
public class VideoRequest implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "视频标题", required = true)
    @NotBlank(message = "请填写视频标题")
    @Length(max = 200, message = "视频标题最多200个字符")
    private String title;

    @ApiModelProperty(value = "视频", required = true)
    @NotBlank(message = "请上传视频")
    @Length(max = 2000, message = "视频最多255个字符")
    private String imageInput;

    @ApiModelProperty(value = "视频简介", required = true)
    @Length(max = 200, message = "视频简介最多200个字符")
    @NotBlank(message = "请填写视频简介")
    private String synopsis;

    @ApiModelProperty(value = "排序")
    private String sort;

    @ApiModelProperty(value = "是否隐藏 0不隐藏，1隐藏")
    private String hide;

    @ApiModelProperty(value = "视频详细内容")
    private String content;

    @ApiModelProperty(value = "是否热门(小程序)", example = "false")
    @NotNull(message = "是否热门(小程序)不能为空")
    private Boolean isHot;

    @ApiModelProperty(value = "是否轮播图(小程序)" , example = "true")
    @NotNull(message = "是否轮播图(小程序)不能为空")
    private Boolean isBanner;

    @ApiModelProperty(value = "商品关联id")
    private String productId;
}
