2021-11-27 17:32:13 +08:00

27 lines
817 B
Plaintext

using Infrastructure;
using Infrastructure.Attribute;
using {ModelsNamespace}.Models;
using {IRepositoriesNamespace};
namespace {ServicesNamespace}.Business
{
/// <summary>
/// {FunctionName}Service业务层处理
///
/// @author {Author}
/// @date {DateTime}
/// </summary>
[AppService(ServiceType = typeof(I{ModelTypeName}Service), ServiceLifetime = LifeTime.Transient)]
public class {ModelTypeName}Service : BaseService<{ModelTypeName}>, I{ModelTypeName}Service
{
private readonly {ModelTypeName}Repository _{ModelTypeName}repository;
public {ModelTypeName}Service({ModelTypeName}Repository repository) : base(repository)
{
_{ModelTypeName}repository = repository;
}
#region 业务逻辑代码
#endregion
}
}