package com.yuchen.saas.flow.api.dto;

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

@Data
public class Condition {

    @ApiModelProperty(name = "key", value = "表单字段唯一标识")
    private String key;

    @ApiModelProperty(name = "expression", value = "表达式 lv,为空:empty,不为空:notempty,大于>,小于:<,不等于:!=")
    private String expression;

    @ApiModelProperty(name = "value", value = "表单值")
    private Object value;

    @ApiModelProperty(name = "keyType", value = "表单字段类型(单行文本:Input,多行文本:Textarea，數字：Number,日期:Date,日期时间:DateTime," +
            "明细:Layout,时间:Time,金额:Money,单选:SingleSelect，部门：SelectDept，用户：SelectUser，多部门：SelectMultiDept，多用户：SelectMultiUser")
    private String keyType;

    @ApiModelProperty(name = "options", value = "表单字段模板")
    private Object options;

    @ApiModelProperty(name = "isSub", value = "是否是子表单数据")
    private Boolean isSub;
}
