1 Star 0 Fork 1.5K

codingstudio/BootstrapAdmin

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ModelBase.cs 1.52 KB
一键复制 编辑 原始数据 按行查看 历史
Argo Zhang 提交于 2020-03-12 10:17 +08:00 . feat: 前台系统增加演示系统开关
using Bootstrap.Client.DataAccess;
using Bootstrap.Security.Mvc;
namespace Bootstrap.Client.Models
{
/// <summary>
/// ModelBase 基础类
/// </summary>
public class ModelBase
{
/// <summary>
/// 默认构造函数
/// </summary>
public ModelBase()
{
AppId = BootstrapAppContext.AppId;
Title = DictHelper.RetrieveWebTitle(AppId);
Footer = DictHelper.RetrieveWebFooter(AppId);
Theme = DictHelper.RetrieveActiveTheme();
IsDemo = DictHelper.RetrieveSystemModel();
}
/// <summary>
/// 是否为演示系统
/// </summary>
public bool IsDemo { get; protected set; }
/// <summary>
/// 获得 应用程序标识
/// </summary>
public string AppId { get; private set; }
/// <summary>
/// 获取 网站标题
/// </summary>
public string Title { get; private set; }
/// <summary>
/// 获取 网站页脚
/// </summary>
public string Footer { get; private set; }
/// <summary>
/// 网站样式全局设置
/// </summary>
public string Theme { get; protected set; }
/// <summary>
/// 是否显示卡片标题
/// </summary>
public string ShowCardTitle { get; protected set; } = "";
/// <summary>
/// 是否收缩侧边栏
/// </summary>
public string ShowSideBar { get; protected set; } = "";
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/codingstudio/BootstrapAdmin.git
git@gitee.com:codingstudio/BootstrapAdmin.git
codingstudio
BootstrapAdmin
BootstrapAdmin
master

搜索帮助