using System.Collections.Generic;
using CncModels.Entity;

namespace CncRepository.Interface
{
    /// <summary>
    /// 系统配置仓储接口
    /// </summary>
    public interface ISysConfigRepository
    {
        /// <summary>按配置Key获取配置</summary>
        SysConfig GetByKey(string configKey);

        /// <summary>获取全部配置</summary>
        List<SysConfig> GetAll();

        /// <summary>更新配置值</summary>
        /// <param name="id">配置项ID</param>
        /// <param name="configValue">新值</param>
        bool UpdateValue(int id, string configValue);
    }
}
