package com.storlead.knowledge.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@ApiModel(value = "ConfigVersionDTO", description = "配置版本数据传输对象")
public class ConfigVersionDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "名称")
    @NotBlank(message = "名称不能为空")
    private String name;

    @ApiModelProperty(value = "应用编码")
    @NotBlank(message = "应用编码不能为空")
    private String appCode;

    @ApiModelProperty(value = "键值")
    @NotBlank(message = "键值不能为空")
    private String key;

    @ApiModelProperty(value = "版本号")
    @NotBlank(message = "版本号不能为空")
    private String version;

    @ApiModelProperty(value = "状态")
    private Integer status;
}