package com.softwarebr.nunu.json.admin.go;

import com.brframework.commoncms.annatotion.column.SelectColumn;
import com.softwarebr.nunu.config.SelectConfig;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @date 2020-02-19 14:03:47
 * @author lilin
 */

@Data
@ApiModel
public class LabelParam {

    @ApiModelProperty(value = "一级标签名称", required = true, example = "")
    @SelectColumn(optionsMappingContext = SelectConfig.SELECT_LABEL)
    private Long parentId;

    @ApiModelProperty(value = "标签名称", required = true, example = "")
    @NotEmpty(message = "标签名称不能为空")
    private String labelName;

    @ApiModelProperty(value = "排序值", required = true, example = "")
    @NotNull(message = "请填写排序值")
    private Integer sort;

}
