Files
Yi.Framework/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/SettingService.cs
2023-12-28 20:24:49 +08:00

31 lines
767 B
C#

using Volo.Abp.Application.Services;
using Yi.Framework.Bbs.Application.Contracts.IServices;
namespace Yi.Framework.Bbs.Application.Services
{
/// <summary>
/// Setting服务实现
/// </summary>
public class SettingService : ApplicationService,
ISettingService
{
/// <summary>
/// 获取配置标题
/// </summary>
/// <returns></returns>
/// <exception cref="NotImplementedException"></exception>
public Task<string> GetTitleAsync()
{
return Task.FromResult("你好世界");
}
public List<string> GetIcon()
{
return Directory.GetFiles("wwwroot/icon").Select(x => "wwwroot/icon/"+ Path.GetFileName(x)).ToList();
}
}
}