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.
24 lines
617 B
24 lines
617 B
3 years ago
|
using TenantManagement.Api.DDD.Domain.Entites;
|
||
|
|
||
3 years ago
|
namespace TenantManagement.Api.DDD.Shared.IServices;
|
||
3 years ago
|
|
||
|
/// <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);
|
||
|
}
|