113 lines
3.8 KiB
C#
113 lines
3.8 KiB
C#
// Copyright (c) 2022-Now 少林寺驻北固山办事处大神父王喇嘛
|
|
//
|
|
// SimpleAdmin 基于 Apache License Version 2.0 协议发布,可用于商业项目,但必须遵守以下补充条款:
|
|
// 1.请不要删除和修改根目录下的LICENSE文件。
|
|
// 2.请不要删除和修改SimpleAdmin源码头部的版权声明。
|
|
// 3.分发源码时候,请注明软件出处 https://gitee.com/dotnetmoyu/SimpleAdmin
|
|
// 4.基于本软件的作品,只能使用 SimpleAdmin 作为后台服务,除外情况不可商用且不允许二次分发或开源。
|
|
// 5.请不得将本软件应用于危害国家安全、荣誉和利益的行为,不能以任何形式用于非法为目的的行为。
|
|
// 6.任何基于本软件而产生的一切法律纠纷和责任,均于我司无关。
|
|
|
|
namespace SimpleAdmin.Plugin.Mobile;
|
|
|
|
/// <summary>
|
|
/// 资源
|
|
///</summary>
|
|
[SugarTable("mobile_resource", TableDescription = "移动资源")]
|
|
[Tenant(SqlSugarConst.DB_DEFAULT)]
|
|
[CodeGen]
|
|
public class MobileResource : BaseEntity
|
|
{
|
|
/// <summary>
|
|
/// 父id
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "ParentId", ColumnDescription = "父id", IsNullable = true)]
|
|
public virtual long? ParentId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 标题
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Title", ColumnDescription = "标题", Length = 200)]
|
|
public virtual string Title { get; set; }
|
|
|
|
/// <summary>
|
|
/// 别名
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Name", ColumnDescription = "别名", Length = 200, IsNullable = true)]
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// 描述
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Description", ColumnDescription = "描述", Length = 200, IsNullable = true)]
|
|
public string Description { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 编码
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Code", ColumnDescription = "编码", Length = 200, IsNullable = true)]
|
|
public virtual string Code { get; set; }
|
|
|
|
/// <summary>
|
|
/// 分类
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Category", ColumnDescription = "分类", Length = 200)]
|
|
public string Category { get; set; }
|
|
|
|
/// <summary>
|
|
/// 模块
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Module", ColumnDescription = "所属模块Id", IsNullable = true)]
|
|
public virtual long? Module { get; set; }
|
|
|
|
/// <summary>
|
|
/// 菜单类型
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "MenuType", ColumnDescription = "菜单类型", Length = 200, IsNullable = true)]
|
|
public virtual string MenuType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 路径
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Path", ColumnDescription = "路径", IsNullable = true)]
|
|
public virtual string Path { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 图标
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Icon", ColumnDescription = "图标", Length = 200, IsNullable = true)]
|
|
public virtual string Icon { get; set; }
|
|
|
|
/// <summary>
|
|
/// 颜色
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Color", ColumnDescription = "颜色", Length = 200, IsNullable = true)]
|
|
public string Color { get; set; }
|
|
|
|
/// <summary>
|
|
/// 排序码
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "SortCode", ColumnDescription = "排序码", IsNullable = true)]
|
|
public int? SortCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 颜色
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "RegType", ColumnDescription = "规则类型", Length = 200, IsNullable = true)]
|
|
public string RegType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 菜单元标签
|
|
/// </summary>
|
|
[SugarColumn(IsIgnore = true)]
|
|
public MobleMeta Meta { get; set; }
|
|
|
|
/// <summary>
|
|
/// 字节点
|
|
/// </summary>
|
|
[SugarColumn(IsIgnore = true)]
|
|
public List<MobileResource> Children { get; set; }
|
|
}
|