package com.erp.approval.dto;

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

import java.io.Serializable;
import java.util.Map;

/**
 * 动作DTO
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ActionDTO implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 动作类型
     */
    @NotBlank(message = "动作类型不能为空")
    private String type;
    
    /**
     * 动作参数
     */
    private Map<String, Object> params;
}
