using System; using System.Text; using System.Collections.Generic; using System.Data; using System.Runtime.Serialization; using SqlSugar; namespace IStation.Entity { /// /// 菜单 /// [SugarTable("menu")] public class Menu : BaseTraceEntity, System.ICloneable, ITreeSorter,IUseStatus, ITagName { /// /// /// public Menu() { } /// /// /// public Menu(Menu rhs) : base(rhs) { this.SoftType = rhs.SoftType; this.SoftTag = rhs.SoftTag; this.ParentIds = rhs.ParentIds; this.Name = rhs.Name; this.Type = rhs.Type; this.Icon = rhs.Icon; this.Router = rhs.Router; this.Component = rhs.Component; this.Permission = rhs.Permission; this.OpenType = rhs.OpenType; this.Visible = rhs.Visible; this.Link = rhs.Link; this.Redirect = rhs.Redirect; this.Weight = rhs.Weight; this.Paras = rhs.Paras; this.TagName = rhs.TagName; this.SortCode = rhs.SortCode; this.UseStatus = rhs.UseStatus; this.Description = rhs.Description; } /// /// 软件类型 /// public string SoftType { get { return _softtype; } set { _softtype = value; } } private string _softtype; /// /// 软件标签 /// public string SoftTag { get { return _softtag; } set { _softtag = value; } } private string _softtag; /// /// 父节点标识 /// public string ParentIds { get { return _parentids; } set { _parentids = value; } } private string _parentids; /// /// 名称 /// public string Name { get { return _name; } set { _name = value; } } private string _name; /// /// 类型 /// public int Type { get { return _type; } set { _type = value; } } private int _type; /// /// 图标 /// public string Icon { get { return _icon; } set { _icon = value; } } private string _icon; /// /// 路由地址 /// public string Router { get; set; } /// /// 组件地址 /// public string Component { get; set; } /// /// 权限标识 /// public string Permission { get; set; } /// /// 打开方式(字典 0无 1组件 2内链 3外链) /// public int OpenType { get; set; } = 0; /// /// 是否可见 /// public bool Visible { get; set; } = true; /// /// 内链地址 /// public string Link { get; set; } /// /// 重定向地址 /// public string Redirect { get; set; } /// /// 权重(字典 1系统权重 2业务权重) /// public int Weight { get; set; } = 2; /// /// 参数 /// public string Paras { get { return _paras; } set { _paras = value; } } private string _paras; /// /// 标签名称 /// public string TagName { get { return _tagname; } set { _tagname = value; } } private string _tagname; /// /// 排序 /// public int SortCode { get { return _sortcode; } set { _sortcode = value; } } private int _sortcode; /// /// 使用状态 /// public int UseStatus { get { return _usestatus; } set { _usestatus = value; } } private int _usestatus; /// /// 说明 /// public string Description { get { return _description; } set { _description = value; } } private string _description; /// /// /// public Menu Clone() { return (Menu)this.MemberwiseClone(); } object ICloneable.Clone() { return this.MemberwiseClone(); } } }