package com.lframework.xingyun.template.inner.vo.system.generate;

import com.lframework.starter.web.components.validation.IsJsonArray;
import com.lframework.starter.web.vo.BaseVo;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

@Data
public class SettingSysGenerateCodeVo implements BaseVo, Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * ID
   */
  @ApiModelProperty(value = "ID", required = true)
  @NotNull(message = "id不能为空！")
  private Integer id;

  /**
   * 配置规则
   */
  @ApiModelProperty(value = "配置规则", required = true)
  @NotBlank(message = "配置规则不能为空！")
  @IsJsonArray(message = "配置规则格式错误！")
  private String configStr;
}
