package com.erp.skumatch.dto;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
public class RuleRequest {
    private Long id;
    @NotBlank(message = "规则名称不能为空")
    private String name;
    private Integer priority = 0;
    private String platform;
    @NotBlank(message = "匹配字段不能为空")
    private String field;
    @NotBlank(message = "匹配模式不能为空")
    private String pattern;
    private String replacePattern;
    @NotBlank(message = "匹配方式不能为空")
    private String matchType;
    private Integer enabled = 1;
}
