package net.northking.cctp.scriptcase.api.scenescript.bean;

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

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

@Data
@ApiModel(description = "场景节点图形位置连接线")
public class Line {
    @ApiModelProperty("场景连接线Id")
    @Size(max = 32, message="场景连接线Id: 数据长度不能 > 32" )
    public String id;
    @ApiModelProperty("场景连接线显示名")
    @Size(max = 30, message="场景连接线显示名: 数据长度不能 > 30" )
    public String lable;
    @ApiModelProperty("场景连接线类型(commLine:通用连接线, succLine:成功连接线, failLine:失败连接线, dependencyLine:节点变量引用关系连接线)")
    public String lineType;
    @ApiModelProperty("场景连接线Id")
    @Size(max = 32, message="场景连接线Id: 数据长度不能 > 32" )
    public String source;
    @ApiModelProperty("场景连接线Id")
    @Size(max = 32, message="场景连接线Id: 数据长度不能 > 32" )
    public String target;
    @ApiModelProperty("场景连接线")
    public List<Point> points;
}
