红包事件监听器

This commit is contained in:
wells
2026-08-05 17:26:11 +08:00
parent 16242b97de
commit d6b3b1f733
2 changed files with 61 additions and 0 deletions
@@ -0,0 +1,24 @@
package com.tailbet.event;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;
/**
* 红包领完事件,触发开奖结算
*/
@Getter
public class RedPacketFinishedEvent extends ApplicationEvent {
private final Long roundId;
private final Long groupId;
private final Long rpId;
private final Integer luckyDigit;
public RedPacketFinishedEvent(Object source, Long roundId, Long groupId, Long rpId, Integer luckyDigit) {
super(source);
this.roundId = roundId;
this.groupId = groupId;
this.rpId = rpId;
this.luckyDigit = luckyDigit;
}
}