crm.core/code/Crm.Core.Domain/Impl/INotificationDomain.cs

31 lines
1.1 KiB
C#

using Crm.Core.Domain.Dto.CRM;
using Crm.Core.Entity.Crm;
namespace Crm.Core.Domain.Impl
{
public interface INotificationDomain : ITransientDependency
{
Task<BAS_NOTIFICATION> InsetNotification(OrderUserProtectionDto orderUserProtectionDto, string message);
Task<BAS_NOTIFICATION> InsetNotification(SendMessageDto dto);
Task InsetNotificationStatistics(OrderUserProtectionDto orderUserProtectionDto);
Task<List<NotificationDto>> GetNotificationsByEid(decimal eid, string appid);
Task<PageResult<NotificationDto>> GetNotificationsPage(NotificationSearchPageDto search);
Task<bool> Read(List<decimal> messageIds);
Task<bool> RealAll();
Task<LivePageDto<NotificationStatisticsDto>> GetNotificationStatisticsPage(NotificationStatisticsSearchPageDto dto);
Task<int> GetMessageCount(decimal? eid, NotificationType? notificationType = null, string? connectionId = "");
Task WeworkSend(string? appid, string? appuserid, decimal eid, string message);
Task SendMessage(SendMessageDto dto);
Task<RepeatDeptmentDto> GetRepeatDeptments();
}
}