You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

23 lines
617 B

using TenantManagement.Api.DDD.Domain.Entites;
namespace TenantManagement.Api.DDD.Shared.IServices;
/// <summary>
/// 租户领域服务
/// </summary>
public interface ITenantDomainService
{
/// <summary>
/// 创建
/// </summary>
/// <param name="name">租户名称</param>
/// <returns>返回租户实体</returns>
Task<Tenant> CreateAsync(string tenantName);
/// <summary>
/// 修改名称
/// </summary>
/// <param name="tenant">租户实体</param>
/// <param name="tenantName">租户名称</param>
Task ChangeNameAsync(Tenant tenant, string tenantName);
}