package com.erp.approval.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 条件DTO
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ConditionDTO implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 字段名
     */
    @NotBlank(message = "字段名不能为空")
    private String field;
    
    /**
     * 操作符
     */
    @NotBlank(message = "操作符不能为空")
    private String operator;
    
    /**
     * 期望值
     */
    @NotNull(message = "期望值不能为空")
    private Object value;
}
