Files
Yi.Framework/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/SettingService.cs
2023-12-29 13:49:06 +08:00

34 lines
874 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("你好世界");
}
/// <summary>
/// 获取头像文件
/// </summary>
/// <returns></returns>
public List<string> GetIcon()
{
return Directory.GetFiles("wwwroot/icon").Select(x => "wwwroot/icon/"+ Path.GetFileName(x)).ToList();
}
}
}