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