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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 积分发放结果。
 *
 * @author jeesharp
 * @since 2026-06-23
 */
@Data
@Schema(description = "积分发放结果")
public class MemberPointsGrantResultDTO {

    @Schema(description = "是否本次新发放")
    private boolean granted;

    @Schema(description = "是否幂等命中（此前已发放）")
    private boolean idempotentHit;

    @Schema(description = "实际发放积分")
    private int points;

    @Schema(description = "命中规则ID")
    private String ruleId;

    @Schema(description = "命中规则名称")
    private String ruleName;

    @Schema(description = "发放记录ID")
    private String grantRecordId;

    @Schema(description = "积分流水ID")
    private String pointsLogId;
}
