SysConfigService.cs 547 B

123456789101112131415161718192021
  1. using Infrastructure.Attribute;
  2. using ZR.Model.System;
  3. namespace ZR.Service.System
  4. {
  5. /// <summary>
  6. /// 参数配置Service业务层处理
  7. /// </summary>
  8. [AppService(ServiceType = typeof(ISysConfigService), ServiceLifetime = LifeTime.Transient)]
  9. public class SysConfigService : BaseService<SysConfig>, ISysConfigService
  10. {
  11. #region 业务逻辑代码
  12. public SysConfig GetSysConfigByKey(string key)
  13. {
  14. return Queryable().First(f => f.ConfigKey == key);
  15. }
  16. #endregion
  17. }
  18. }