fix: 修复bbs点赞数异常问题
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Bbs.Domain.Shared.Enums
|
||||
{
|
||||
/// <summary>
|
||||
/// 消息类型
|
||||
/// </summary>
|
||||
public enum NoticeTypeEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// 个人
|
||||
/// </summary>
|
||||
Personal,
|
||||
/// <summary>
|
||||
/// 广播
|
||||
/// </summary>
|
||||
Broadcast,
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using Yi.Framework.Bbs.Domain.Shared.Enums;
|
||||
|
||||
namespace Yi.Framework.Bbs.Domain.Shared.Etos
|
||||
{
|
||||
public class BbsNoticeEventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// 发送个人消息
|
||||
/// </summary>
|
||||
/// <param name="acceptUserId"></param>
|
||||
/// <param name="message"></param>
|
||||
public BbsNoticeEventArgs(Guid acceptUserId, string message)
|
||||
{
|
||||
NoticeType = NoticeTypeEnum.Personal;
|
||||
AcceptUserId = acceptUserId;
|
||||
Message = message;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 发送广播
|
||||
/// </summary>
|
||||
/// <param name="message"></param>
|
||||
public BbsNoticeEventArgs(string message)
|
||||
{
|
||||
NoticeType = NoticeTypeEnum.Broadcast;
|
||||
Message = message;
|
||||
}
|
||||
public NoticeTypeEnum NoticeType { get; private set; }
|
||||
|
||||
public string Message { get; private set; }
|
||||
|
||||
public Guid? AcceptUserId { get; private set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user