package com.ho.user.vo.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;

/**
 * @ClassName: DictAddReqVO
 *新增字典入参
 * @Author:
 * @CreateDate: 2019/9/19 13:30
 * @Version: 0.0.1
 */
@ToString
@Getter
@Setter
public class DictAddReqVO {

    @ApiModelProperty(value = "参数类型")
    @NotBlank(message = "参数类型不能为空")
    @Length(max = 50,message = "类型不能超过50个字符")
    private String type;


    @ApiModelProperty(value = "标签名称")
    @NotBlank(message = "标签名称不能为空")
    @Length(max = 50,message = "标签不能超过50个字符")
    private String label;

    @ApiModelProperty(value = "标签值")
    @NotBlank(message = "标签值不能为空")
    @Length(max = 50,message = "标签值不能超过50个字符")
    private String value;

    @ApiModelProperty(value = "排序")
    @Max(value =100000,message = "排序字码过大")
    private Long sort;

    @ApiModelProperty(value = "描述")
    @Length( max = 200,message = "描述不能超过200个字符")
    private String desc;

}
