feat: 增加获取登录页面方法

This commit is contained in:
Argo-Tianyi 2021-12-25 20:43:34 +08:00
parent ec83350830
commit ce74be1f6d
3 changed files with 17 additions and 0 deletions

View File

@ -10,6 +10,11 @@ namespace BootstrapAdmin.DataAccess.EFCore.Services
throw new NotImplementedException();
}
public Dictionary<string, string> GetLogins()
{
throw new NotImplementedException();
}
public Dictionary<string, string> GetThemes()
{
throw new NotImplementedException();

View File

@ -29,6 +29,12 @@ class DictService : BaseDatabase, IDict
return dicts.Where(d => d.Category == "应用程序").Select(d => new KeyValuePair<string, string>(d.Code, d.Name)).ToDictionary(i => i.Key, i => i.Value);
}
public Dictionary<string, string> GetLogins()
{
var dicts = GetAll();
return dicts.Where(d => d.Category == "系统首页").Select(d => new KeyValuePair<string, string>(d.Code, d.Name)).ToDictionary(i => i.Key, i => i.Value);
}
public Dictionary<string, string> GetThemes()
{
var dicts = GetAll();

View File

@ -11,6 +11,12 @@
/// <returns></returns>
Dictionary<string, string> GetApps();
/// <summary>
/// 获得 配置所有的登录页集合
/// </summary>
/// <returns></returns>
Dictionary<string, string> GetLogins();
/// <summary>
/// 获得 配置所有的主题集合
/// </summary>