添加项目文件。
This commit is contained in:
13
message/Tnb.Message.Interfaces/IImReplyService.cs
Normal file
13
message/Tnb.Message.Interfaces/IImReplyService.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace JNPF.Message.Interfaces;
|
||||
|
||||
/// <summary>
|
||||
/// 业务抽象:消息会话.
|
||||
/// </summary>
|
||||
public interface IImReplyService
|
||||
{
|
||||
/// <summary>
|
||||
/// 强制下线.
|
||||
/// </summary>
|
||||
/// <param name="connectionId"></param>
|
||||
void ForcedOffline(string connectionId);
|
||||
}
|
||||
19
message/Tnb.Message.Interfaces/IMessageService.cs
Normal file
19
message/Tnb.Message.Interfaces/IMessageService.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace JNPF.Message.Interfaces.Message;
|
||||
|
||||
/// <summary>
|
||||
/// 系统消息
|
||||
/// 版 本:V3.2
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
public interface IMessageService
|
||||
{
|
||||
/// <summary>
|
||||
/// 消息发送.
|
||||
/// </summary>
|
||||
/// <param name="toUserIds"></param>
|
||||
/// <param name="title"></param>
|
||||
/// <param name="bodyText"></param>
|
||||
/// <returns></returns>
|
||||
Task SentMessage(List<string> toUserIds, string title, string bodyText = null, Dictionary<string, object> bodyDic = null);
|
||||
}
|
||||
10
message/Tnb.Message.Interfaces/ISendMessageService.cs
Normal file
10
message/Tnb.Message.Interfaces/ISendMessageService.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using JNPF.Common.Dtos.Message;
|
||||
|
||||
namespace JNPF.Message.Interfaces.Message;
|
||||
|
||||
public interface ISendMessageService
|
||||
{
|
||||
Task<string> SendMessage(MessageSendModel messageSendModel, Dictionary<string, object> bodyDic);
|
||||
|
||||
Task SendMessageDefult(string enCode, List<string> toUser, string taskName, Dictionary<string, object> bodyDic);
|
||||
}
|
||||
16
message/Tnb.Message.Interfaces/IShortLinkService.cs
Normal file
16
message/Tnb.Message.Interfaces/IShortLinkService.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using JNPF.Message.Entitys.Entity;
|
||||
|
||||
namespace JNPF.Message.Interfaces.Message;
|
||||
|
||||
/// <summary>
|
||||
/// 系统消息
|
||||
/// 版 本:V3.2
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
public interface IShortLinkService
|
||||
{
|
||||
Task<MessageShortLinkEntity> Create(string userId, string bodyText);
|
||||
|
||||
string CreateToken(string userId);
|
||||
}
|
||||
15
message/Tnb.Message.Interfaces/Tnb.Message.Interfaces.csproj
Normal file
15
message/Tnb.Message.Interfaces/Tnb.Message.Interfaces.csproj
Normal file
@@ -0,0 +1,15 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Import Project="$(SolutionDir)\common.props" />
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<GenerateDocumentationFile>False</GenerateDocumentationFile>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Tnb.Message.Entitys\Tnb.Message.Entitys.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user