package cn.ey.biz.module.system.controller.admin.field.vo;

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

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.List;

@ApiModel("管理后台 - 字段条目 Response VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class FieldItemRespVO extends FieldItemBaseVO {

    @ApiModelProperty(value = "主键", required = true)
    private Long id;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "配置节点")
    @NotNull(message = "配置编码不能为空")
    private String configCode;

    @Size(max = 1000, message = "belongTos 最大1000条")
    private List<Integer> belongTos;

}
