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

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

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

@ApiModel("项目管理 - 法律实体 Request VO")
@Data
public class CodeBlockLegalEntityCreateReqVO implements Serializable {
    private static final long serialVersionUID = 1L;

    public interface Save {
    }

    public interface QueryById {
    }

    public interface Deleted {
    }
    @ApiModelProperty(value = "法律实体id")
    @NotEmpty(message = "法律实体id不能为空", groups = {Deleted.class})
    private List<Long> ids;
    @ApiModelProperty(value = "法律实体id")
    @NotNull(message = "法律实体id不能为空", groups = {QueryById.class})
    private Long id;
    @ApiModelProperty(value = "法律实体编码")
    @NotBlank(message = "法律实体编码不能为空", groups = {Save.class})
    @Size(max = 16, message = "法律实体编码不能超过16个字符")
    private String legalEntityCode;

    @ApiModelProperty(value = "业务线编码")
    @Size(max = 16, message = "业务线编码不能超过16个字符")
    private String slCode;

    @ApiModelProperty(value = "子业务线编码")
    @Size(max = 16, message = "子业务线编码不能超过16个字符")
    private String sslCode;

    @ApiModelProperty(value = "子管理单位编码")
    private List<String> smuCode;

}
