添加项目文件。

This commit is contained in:
2026-10-12 16:22:04 +08:00
parent 7c68a0ca0a
commit aad11be43d
1000 changed files with 120807 additions and 0 deletions
@@ -0,0 +1,24 @@
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);
}
}
@@ -0,0 +1,36 @@
using System;
namespace AdminDomain.Customer.Param
{
public class AddCustomerParam
{
public string UserId { get; set; } = "";
public string UserName { get; set; } = "";
public string? Avatar { get; set; }
}
public class UpdateCustomerParam
{
public string Id { get; set; } = "";
public string UserName { get; set; } = "";
public string? Avatar { get; set; }
public int Status { get; set; }
}
public class GetCustomerListParam
{
public int PageIndex { get; set; } = 1;
public int PageSize { get; set; } = 10;
public string? UserName { get; set; }
public int? Status { get; set; }
}
public class GetConversationListParam
{
public int PageIndex { get; set; } = 1;
public int PageSize { get; set; } = 10;
public string? UserId { get; set; }
public string? CustomerId { get; set; }
public int? Status { get; set; }
}
}