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 javax.validation.constraints.NotNull;

/**
 * @Description
 * Author yule
 * Date 2022/8/24 14:24
 */
@ToString
@Getter
@Setter
public class DictSubUpdateReqVO {

    @ApiModelProperty(value = "id")
    @NotNull(message = "id不能为空")
    private Integer id;

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


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

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

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

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