namespace Admin.NET.Application.Service;
///
/// 租户业务服务
///
[ApiDescriptionSettings("租户业务服务", Order = 200)]
public class TenantBusinessService : IDynamicApiController, ITransient
{
private readonly SqlSugarRepository _tenantBusinessRep;
public TenantBusinessService(SqlSugarRepository businessRep)
{
_tenantBusinessRep = businessRep;
}
///
/// 增加租户业务数据
///
///
public async Task AddBusiness()
{
var tenantBusiness = new TenantBusiness() { Name = "zuohuaijun" };
return await _tenantBusinessRep.InsertAsync(tenantBusiness);
}
///
/// 查询租户业务数据
///
///
public async Task> GetBusinessList()
{
return await _tenantBusinessRep.GetListAsync();
}
}