Files
shgx_tz_mes_backend_sync/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/ServiceTemplate.txt

31 lines
831 B
Plaintext
Raw Normal View History

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-10 18:06:07 +08:00
namespace {ServicesNamespace}.Business
{
/// <summary>
2021-09-14 14:34:20 +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
}
}