From 00718929e7589479b61ea8fb3601f97d25c9760b Mon Sep 17 00:00:00 2001 From: wintel Date: Sat, 30 Dec 2023 20:37:38 +0800 Subject: [PATCH] =?UTF-8?q?fix=20#I8OB8D=20=E5=A2=9E=E5=8A=A0=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E9=85=8D=E7=BD=AE=E7=95=8C=E9=9D=A2=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ModuleManager/Response/ModuleView.cs | 5 + OpenAuth.Repository/Domain/Module.cs | 192 +++++++++--------- 2 files changed, 104 insertions(+), 93 deletions(-) diff --git a/OpenAuth.App/ModuleManager/Response/ModuleView.cs b/OpenAuth.App/ModuleManager/Response/ModuleView.cs index 86a1e372..88a41d30 100644 --- a/OpenAuth.App/ModuleManager/Response/ModuleView.cs +++ b/OpenAuth.App/ModuleManager/Response/ModuleView.cs @@ -63,6 +63,11 @@ namespace OpenAuth.App.Response public string Code { get; set; } public bool IsSys { get; set; } + + /// + /// 前端界面是否缓存 + /// + public bool Keepalive { get; set; } /// /// 模块中的元素 diff --git a/OpenAuth.Repository/Domain/Module.cs b/OpenAuth.Repository/Domain/Module.cs index accb73bd..2289e4c7 100644 --- a/OpenAuth.Repository/Domain/Module.cs +++ b/OpenAuth.Repository/Domain/Module.cs @@ -1,94 +1,100 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a CodeSmith Template. -// -// DO NOT MODIFY contents of this file. Changes to this -// file will be lost if the code is regenerated. -// Author:Yubao Li -// -//------------------------------------------------------------------------------ - -using System.ComponentModel; -using System.ComponentModel.DataAnnotations.Schema; -using OpenAuth.Repository.Core; - -namespace OpenAuth.Repository.Domain -{ - /// - /// 功能模块表 - /// - [Table("Module")] - public partial class Module : TreeEntity - { - public Module() - { - this.CascadeId= string.Empty; - this.Name= string.Empty; - this.Url= string.Empty; - this.HotKey= string.Empty; - this.IconName= string.Empty; - this.Status= 0; - this.ParentName= string.Empty; - this.Vector= string.Empty; - this.SortNo= 0; - this.ParentId= string.Empty; - this.Code= string.Empty; - } - - - /// - /// 主页面URL - /// - [Description("主页面URL")] - public string Url { get; set; } - /// - /// 热键 - /// - [Description("热键")] - public string HotKey { get; set; } - /// - /// 是否叶子节点 - /// - [Description("是否叶子节点")] - public bool IsLeaf { get; set; } - /// - /// 是否自动展开 - /// - [Description("是否自动展开")] - public bool IsAutoExpand { get; set; } - /// - /// 节点图标文件名称 - /// - [Description("节点图标文件名称")] - public string IconName { get; set; } - /// - /// 当前状态,0:正常,-1:隐藏,不在导航列表中显示 - /// - [Description("当前状态")] - public int Status { get; set; } - - /// - /// 矢量图标 - /// - [Description("矢量图标")] - public string Vector { get; set; } - /// - /// 排序号 - /// - [Description("排序号")] - public int SortNo { get; set; } - - /// - /// 模块标识 - /// - [Description("模块标识")] - public string Code { get; set; } - - /// - /// 是否系统模块 - /// - [Description("是否系统模块")] - public bool IsSys { get; set; } - - } +//------------------------------------------------------------------------------ +// +// This code was generated by a CodeSmith Template. +// +// DO NOT MODIFY contents of this file. Changes to this +// file will be lost if the code is regenerated. +// Author:Yubao Li +// +//------------------------------------------------------------------------------ + +using System.ComponentModel; +using System.ComponentModel.DataAnnotations.Schema; +using OpenAuth.Repository.Core; + +namespace OpenAuth.Repository.Domain +{ + /// + /// 功能模块表 + /// + [Table("Module")] + public partial class Module : TreeEntity + { + public Module() + { + this.CascadeId= string.Empty; + this.Name= string.Empty; + this.Url= string.Empty; + this.HotKey= string.Empty; + this.IconName= string.Empty; + this.Status= 0; + this.ParentName= string.Empty; + this.Vector= string.Empty; + this.SortNo= 0; + this.ParentId= string.Empty; + this.Code= string.Empty; + } + + + /// + /// 主页面URL + /// + [Description("主页面URL")] + public string Url { get; set; } + /// + /// 热键 + /// + [Description("热键")] + public string HotKey { get; set; } + /// + /// 是否叶子节点 + /// + [Description("是否叶子节点")] + public bool IsLeaf { get; set; } + /// + /// 是否自动展开 + /// + [Description("是否自动展开")] + public bool IsAutoExpand { get; set; } + /// + /// 节点图标文件名称 + /// + [Description("节点图标文件名称")] + public string IconName { get; set; } + /// + /// 当前状态,0:正常,-1:隐藏,不在导航列表中显示 + /// + [Description("当前状态")] + public int Status { get; set; } + + /// + /// 矢量图标 + /// + [Description("矢量图标")] + public string Vector { get; set; } + /// + /// 排序号 + /// + [Description("排序号")] + public int SortNo { get; set; } + + /// + /// 模块标识 + /// + [Description("模块标识")] + public string Code { get; set; } + + /// + /// 是否系统模块 + /// + [Description("是否系统模块")] + public bool IsSys { get; set; } + + /// + /// 前端界面是否缓存 + /// + /// [Description("前端界面是否缓存")] + public bool Keepalive { get; set; } + + } } \ No newline at end of file