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