Files
BuYuHouDuan/AdminSrc/AdminDomain/Customer/ICustomerService.cs
T
2026-10-12 16:22:04 +08:00

25 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using AdminDomain.Customer.Param;
using CustomerService.Domain.Entity;
namespace AdminDomain.Customer
{
public interface ICustomerService
{
Task<(bool isOk, string msg, CustomerEntity? customer)> AddCustomer(AddCustomerParam param);
Task<(bool isOk, string msg)> UpdateCustomer(UpdateCustomerParam param);
Task<(bool isOk, string msg)> DeleteCustomer(string id);
Task<(bool isOk, string msg, List<CustomerEntity>? customers, int total)> GetCustomerList(GetCustomerListParam param);
Task<(bool isOk, string msg, CustomerEntity? customer)> GetCustomerById(string id);
Task<(bool isOk, string msg, ConversationEntity? conversation)> GetConversationById(string id);
Task<(bool isOk, string msg, List<ConversationEntity>? conversations, int total)> GetConversationList(GetConversationListParam param);
Task<(bool isOk, string msg)> DeleteConversation(string conversationId);
Task<(bool isOk, string msg, List<MessageEntity>? messages)> GetChatLog(string conversationId);
Task<(bool isOk, string msg)> DeleteMessage(string id);
Task<(bool isOk, string msg)> DeleteAllMessages(string conversationId);
Task<(bool isOk, string msg)> DeleteMessagesBatch(List<string> ids);
}
}