优化代码生成
This commit is contained in:
28
ZR.Service/Business/GendemoService.cs
Normal file
28
ZR.Service/Business/GendemoService.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
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;
|
||||
using ZR.Model.Models;
|
||||
using ZR.Repository;
|
||||
using ZR.Service.IService;
|
||||
|
||||
namespace ZR.Service.Business
|
||||
{
|
||||
/// <summary>
|
||||
/// 服务接口实现
|
||||
/// </summary>
|
||||
[AppService(ServiceType = typeof(IGendemoService), ServiceLifetime = LifeTime.Transient)]
|
||||
public class GendemoService: BaseService<Gendemo>, IGendemoService
|
||||
{
|
||||
private readonly GendemoRepository _repository;
|
||||
public GendemoService(GendemoRepository repository)
|
||||
{
|
||||
_repository = repository;
|
||||
}
|
||||
}
|
||||
}
|
||||
12
ZR.Service/Business/IBusService/IGendemoService.cs
Normal file
12
ZR.Service/Business/IBusService/IGendemoService.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using ZR.Model.Models;
|
||||
|
||||
namespace ZR.Service.Business
|
||||
{
|
||||
/// <summary>
|
||||
/// 定义服务接口
|
||||
/// </summary>
|
||||
public interface IGendemoService: IBaseService<Gendemo>
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user