10 changed files with 114 additions and 12 deletions
@ -1,8 +1,5 @@ |
|||||
using System; |
namespace LINGYUN.Abp.AIManagement.Chats.Dtos; |
||||
using System.Collections.Generic; |
public class TextChatMessageDto : ChatMessageDto |
||||
using System.Text; |
|
||||
|
|
||||
namespace LINGYUN.Abp.AIManagement.Chats.Dtos; |
|
||||
public class TextChatMessageDto |
|
||||
{ |
{ |
||||
|
public string Content { get; set; } |
||||
} |
} |
||||
|
|||||
@ -0,0 +1,11 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using Volo.Abp.Application.Dtos; |
||||
|
|
||||
|
namespace LINGYUN.Abp.AIManagement.Chats.Dtos; |
||||
|
|
||||
|
public class TextChatMessageGetListInput : PagedAndSortedResultRequestDto |
||||
|
{ |
||||
|
[Required] |
||||
|
public Guid ConversationId { get; set; } |
||||
|
} |
||||
@ -1,9 +1,13 @@ |
|||||
using LINGYUN.Abp.AIManagement.Chats.Dtos; |
using LINGYUN.Abp.AIManagement.Chats.Dtos; |
||||
using System.Collections.Generic; |
using System.Collections.Generic; |
||||
|
using System.Threading.Tasks; |
||||
|
using Volo.Abp.Application.Dtos; |
||||
using Volo.Abp.Application.Services; |
using Volo.Abp.Application.Services; |
||||
|
|
||||
namespace LINGYUN.Abp.AIManagement.Chats; |
namespace LINGYUN.Abp.AIManagement.Chats; |
||||
public interface IChatAppService : IApplicationService |
public interface IChatAppService : IApplicationService |
||||
{ |
{ |
||||
IAsyncEnumerable<string> SendMessageAsync(SendTextChatMessageDto input); |
IAsyncEnumerable<string> SendMessageAsync(SendTextChatMessageDto input); |
||||
|
|
||||
|
Task<PagedResultDto<TextChatMessageDto>> GetListAsync(TextChatMessageGetListInput input); |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue