10 changed files with 114 additions and 12 deletions
@ -1,8 +1,5 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Text; |
|||
|
|||
namespace LINGYUN.Abp.AIManagement.Chats.Dtos; |
|||
public class TextChatMessageDto |
|||
namespace LINGYUN.Abp.AIManagement.Chats.Dtos; |
|||
public class TextChatMessageDto : ChatMessageDto |
|||
{ |
|||
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 System.Collections.Generic; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Application.Services; |
|||
|
|||
namespace LINGYUN.Abp.AIManagement.Chats; |
|||
public interface IChatAppService : IApplicationService |
|||
{ |
|||
IAsyncEnumerable<string> SendMessageAsync(SendTextChatMessageDto input); |
|||
|
|||
Task<PagedResultDto<TextChatMessageDto>> GetListAsync(TextChatMessageGetListInput input); |
|||
} |
|||
|
|||
Loading…
Reference in new issue