package com.jeesharp.business.modules.setting.dto;

import com.jeesharp.framework.pojo.dto.BaseSaveDTO;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = true)
public class MarketingActivityRuleSaveDTO extends BaseSaveDTO {

    @NotBlank(message = "活动ID不能为空")
    private String activityId;

    @NotBlank(message = "规则类型不能为空")
    private String ruleType;

    private String triggerEvent;
    private String rewardRole;
    private String rewardType;
    private BigDecimal rewardValue;
    private BigDecimal rewardRatio;
    private BigDecimal thresholdAmount;
    private BigDecimal maxRewardAmount;
    private String grantMode;
    private String settleMode;
    private String conditionJson;
    private String status;
    private String extJson;
}
