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="HelpRequest对象", description="HelpRequest对象")
public class HelpRequest implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "分类id", required = true)
    @NotBlank(message = "请选择分类")
    private String cid;

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

    @ApiModelProperty(value = "简介")
    @Length(max = 200, message = "简介最多200个字符")
    private String synopsis;

    @ApiModelProperty(value = "内容", required = true)
    @NotBlank(message = "请填写内容")
    private String content;

    @ApiModelProperty(value = "图片")
    private String image;

    @ApiModelProperty(value = "跳转地址")
    private String jumpUrl;

    @ApiModelProperty(value = "分享标题")
    @Length(max = 200, message = "分享标题最多200个字符")
    private String shareTitle;

    @ApiModelProperty(value = "分享简介")
    @Length(max = 200, message = "分享简介最多200个字符")
    private String shareSynopsis;

    @ApiModelProperty(value = "分析图片")
    @Length(max = 255, message = "分析图片名称最多255个字符")
    private String shareImage;

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

    @ApiModelProperty(value = "状态 0无效，1有效")
    private String status;

}
