live-forum/server/webapi/LiveForum/LiveForum.Model/Events/FlowerOperationEvent.cs
2026-03-24 11:27:37 +08:00

47 lines
1.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
namespace LiveForum.Model.Events
{
/// <summary>
/// 送花操作事件(用于队列持久化)
/// </summary>
public class FlowerOperationEvent
{
/// <summary>
/// 事件唯一ID
/// </summary>
public string EventId { get; set; } = Guid.NewGuid().ToString();
/// <summary>
/// 用户ID
/// </summary>
public long UserId { get; set; }
/// <summary>
/// 目标类型Streamer(主播)/Post(帖子)
/// </summary>
public string TargetType { get; set; }
/// <summary>
/// 目标ID
/// </summary>
public long TargetId { get; set; }
/// <summary>
/// 送花月份yyyy-MM格式
/// </summary>
public string SendMonth { get; set; }
/// <summary>
/// 事件发生时间
/// </summary>
public DateTime OccurredAt { get; set; } = DateTime.Now;
/// <summary>
/// 接收者ID用于消息通知
/// </summary>
public long? ReceiverId { get; set; }
}
}