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

import com.alibaba.fastjson.annotation.JSONField;
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 java.time.LocalDateTime;

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

@Data
@ApiModel
public class LabelResult {

    @ApiModelProperty(value = "序号", required = true, example = "1")
    private Long id;

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

    @ApiModelProperty(value = "二标签名称", required = true, example = "")
    private String labelName;

    @ApiModelProperty(value = "排序值", required = true, example = "")
    private Integer sort;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
    private LocalDateTime createDate;
}
