
package com.czg.market.entity;

import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 新客立减 实体类。
 *
 * @author zs
 * @since 2025-09-16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MkConsumeCashbackStep implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @NotNull(message = "id不为空")
    private BigDecimal amount;

    /**
     * 是否开启
     */
    @NotNull(message = "返现金额/比例不为空")
    @DecimalMin(value = "0.01",message = "返现金额/比例不能为0")
    private BigDecimal cashbackAmount;



}
