live-forum/server/webapi/LiveForum/LiveForum.IService/Others/ISystemSettingsService.cs
2026-03-24 11:27:37 +08:00

25 lines
802 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace LiveForum.IService.Others
{
/// <summary>
/// 系统设置服务接口
/// </summary>
public interface ISystemSettingsService
{
/// <summary>
/// 获取配置值
/// </summary>
/// <param name="key">配置键</param>
/// <returns>配置值如果不存在返回null</returns>
Task<string?> GetSettingAsync(string key);
/// <summary>
/// 设置配置值
/// </summary>
/// <param name="key">配置键</param>
/// <param name="value">配置值</param>
/// <param name="description">描述(可选,仅在新建时使用)</param>
/// <returns>是否成功</returns>
Task<bool> SetSettingAsync(string key, string value, string? description = null);
}
}