2021-09-08 18:12:08 +08:00
|
|
|
using Infrastructure;
|
|
|
|
|
using Infrastructure.Attribute;
|
|
|
|
|
using Infrastructure.Extensions;
|
|
|
|
|
using SqlSugar;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using ZR.Common;
|
2021-09-10 22:15:01 +08:00
|
|
|
using {ModelsNamespace}.Models;
|
|
|
|
|
using {IRepositoriesNamespace};
|
2021-09-08 18:12:08 +08:00
|
|
|
|
2021-09-10 18:06:07 +08:00
|
|
|
namespace {ServicesNamespace}.Business
|
2021-09-08 18:12:08 +08:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
2021-09-14 14:34:20 +08:00
|
|
|
/// 代码生成器生成
|
2021-09-08 18:12:08 +08:00
|
|
|
/// </summary>
|
|
|
|
|
[AppService(ServiceType = typeof(I{ModelTypeName}Service), ServiceLifetime = LifeTime.Transient)]
|
|
|
|
|
public class {ModelTypeName}Service: BaseService<{ModelTypeName}>, I{ModelTypeName}Service
|
|
|
|
|
{
|
|
|
|
|
private readonly {ModelTypeName}Repository _repository;
|
|
|
|
|
public {ModelTypeName}Service({ModelTypeName}Repository repository)
|
|
|
|
|
{
|
|
|
|
|
_repository = repository;
|
|
|
|
|
}
|
2021-09-14 14:34:20 +08:00
|
|
|
|
|
|
|
|
#region 业务逻辑代码
|
|
|
|
|
|
|
|
|
|
#endregion
|
2021-09-08 18:12:08 +08:00
|
|
|
}
|
|
|
|
|
}
|