2021-09-30 14:55:24 +08:00
|
|
|
using Infrastructure.Attribute;
|
|
|
|
|
using ZR.Model.System;
|
|
|
|
|
|
|
|
|
|
namespace ZR.Service.System
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 参数配置Service业务层处理
|
|
|
|
|
/// </summary>
|
|
|
|
|
[AppService(ServiceType = typeof(ISysConfigService), ServiceLifetime = LifeTime.Transient)]
|
2021-11-27 09:43:04 +08:00
|
|
|
public class SysConfigService : BaseService<SysConfig>, ISysConfigService
|
2021-09-30 14:55:24 +08:00
|
|
|
{
|
|
|
|
|
#region 业务逻辑代码
|
|
|
|
|
|
2021-12-01 16:56:46 +08:00
|
|
|
public SysConfig GetSysConfigByKey(string key)
|
|
|
|
|
{
|
2022-09-21 21:43:05 +08:00
|
|
|
return Queryable().First(f => f.ConfigKey == key);
|
2021-12-01 16:56:46 +08:00
|
|
|
}
|
|
|
|
|
|
2021-09-30 14:55:24 +08:00
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|