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

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 积分规则等级明细保存项。
 *
 * @author jeesharp
 * @since 2026-06-23
 */
@Data
@Schema(description = "积分规则等级明细保存项")
public class MemberPointsRuleLevelSaveItemDTO {

    @Schema(description = "明细ID（更新时可选）")
    private String id;

    @NotBlank(message = "等级ID不能为空")
    @Schema(description = "等级ID", required = true)
    private String levelId;

    @Schema(description = "等级编码（冗余）")
    private String levelCode;

    @Schema(description = "该等级固定赠送积分")
    private Integer pointsValue;

    @Schema(description = "额外倍率")
    private BigDecimal extraMultiplier;

    @Schema(description = "状态：0-禁用 1-启用")
    private Integer status;
}
