using Infrastructure.Attribute;
using ARW.Model.System;
using ARW.Repository;
namespace ARW.Service.System
{
///
/// 参数配置Service业务层处理
///
[AppService(ServiceType = typeof(ISysConfigService), ServiceLifetime = LifeTime.Transient)]
public class SysConfigService : BaseService, ISysConfigService
{
private readonly SysConfigRepository _SysConfigrepository;
public SysConfigService(SysConfigRepository repository)
{
_SysConfigrepository = repository;
}
#region 业务逻辑代码
public SysConfig GetSysConfigByKey(string key)
{
return _SysConfigrepository.Queryable().First(f => f.ConfigKey == key);
}
#endregion
}
}