添加项目文件。
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
// 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.System;
|
||||
|
||||
/// <summary>
|
||||
/// 批量修改
|
||||
///</summary>
|
||||
[SugarTable("batch_edit", TableDescription = "批量修改")]
|
||||
[Tenant(SqlSugarConst.DB_DEFAULT)]
|
||||
[CodeGen]
|
||||
public class BatchEdit : PrimaryKeyEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 唯一编码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Code", ColumnDescription = "唯一编码", Length = 100, IsNullable = false)]
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属库
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ConfigId", ColumnDescription = "所属库", Length = 100, IsNullable = false)]
|
||||
public string ConfigId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 实体名
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "EntityName", ColumnDescription = "实体名", Length = 100, IsNullable = false)]
|
||||
public string EntityName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 表名
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "TableName", ColumnDescription = "表名", Length = 100, IsNullable = false)]
|
||||
public string TableName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 表描述
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "TableDescription", ColumnDescription = "表描述", Length = 100, IsNullable = false)]
|
||||
public string TableDescription { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
// 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.System;
|
||||
|
||||
/// <summary>
|
||||
/// 批量修改配置表
|
||||
///</summary>
|
||||
[SugarTable("batch_edit_config", TableDescription = "批量修改配置表")]
|
||||
[Tenant(SqlSugarConst.DB_DEFAULT)]
|
||||
public class BatchEditConfig : PrimaryKeyEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 批量配置Id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "UId", ColumnDescription = "批量配置Id", IsNullable = false)]
|
||||
public long UId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 字段名
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ColumnName", ColumnDescription = "字段名", Length = 100, IsNullable = false)]
|
||||
public string ColumnName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 字段描述
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ColumnComment", ColumnDescription = "字段描述", Length = 100, IsNullable = false)]
|
||||
public string ColumnComment { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 作用类型
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "DataType", ColumnDescription = "作用类型", Length = 100, IsNullable = false)]
|
||||
public string DataType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 字典值
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "DictTypeCode", ColumnDescription = "字典值", Length = 100, IsNullable = true)]
|
||||
public string DictTypeCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库类型
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "NetType", ColumnDescription = "数据库类型", Length = 100, IsNullable = true)]
|
||||
public string NetType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 接口名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "RequestUrl", ColumnDescription = "接口名称", Length = 100, IsNullable = true)]
|
||||
public string RequestUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 接口类型
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "RequestType", ColumnDescription = "接口类型", Length = 100, IsNullable = true)]
|
||||
public string RequestType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 接口结果标签
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "RequestLabel", ColumnDescription = "接口结果标签", Length = 100, IsNullable = true)]
|
||||
public string RequestLabel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 接口结果值
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "RequestValue", ColumnDescription = "接口结果值", Length = 100, IsNullable = true)]
|
||||
public string RequestValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 启用状态
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Status", ColumnDescription = "状态", Length = 100, IsNullable = false)]
|
||||
public string Status { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
// 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.Core.Entity.System;
|
||||
|
||||
/// <summary>
|
||||
/// C端用户关系
|
||||
/// </summary>
|
||||
[SugarTable("client_relation", TableDescription = "关系")]
|
||||
[Tenant(SqlSugarConst.DB_DEFAULT)]
|
||||
public class ClientRelation : PrimaryKeyEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 对象ID
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ObjectId", ColumnDescription = "对象ID", IsNullable = false)]
|
||||
public long ObjectId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 目标ID
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "TargetId", ColumnDescription = "目标ID", IsNullable = true)]
|
||||
public string TargetId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分类
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Category", ColumnDescription = "分类", Length = 200, IsNullable = true)]
|
||||
public string Category { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,289 @@
|
||||
// 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.System;
|
||||
|
||||
/// <summary>
|
||||
/// C端用户
|
||||
///</summary>
|
||||
[SugarTable("client_user", TableDescription = "C端用户")]
|
||||
[Tenant(SqlSugarConst.DB_DEFAULT)]
|
||||
public class ClientUser : DataEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 头像
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Avatar", ColumnDescription = "头像", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
|
||||
public string Avatar { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 签名
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Signature", ColumnDescription = "签名", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
|
||||
public string Signature { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 账号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Account", ColumnDescription = "账号", Length = 200, IsNullable = false)]
|
||||
public string Account { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 密码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Password", ColumnDescription = "密码", Length = 200, IsNullable = false)]
|
||||
public string Password { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 姓名
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Name", ColumnDescription = "姓名", Length = 200, IsNullable = true)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 昵称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Nickname", ColumnDescription = "昵称", Length = 200, IsNullable = true)]
|
||||
public string Nickname { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 性别
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Gender", ColumnDescription = "性别", Length = 200, IsNullable = true)]
|
||||
public string Gender { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 年龄
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Age", ColumnDescription = "年龄", Length = 200, IsNullable = true)]
|
||||
public string Age { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 出生日期
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Birthday", ColumnDescription = "出生日期", Length = 200, IsNullable = true)]
|
||||
public string Birthday { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 民族
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Nation", ColumnDescription = "民族", Length = 200, IsNullable = true)]
|
||||
public string Nation { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 籍贯
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "NativePlace", ColumnDescription = "籍贯", Length = 200, IsNullable = true)]
|
||||
public string NativePlace { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 家庭住址
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "HomeAddress", ColumnDescription = "家庭住址", IsNullable = true)]
|
||||
public string HomeAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 通信地址
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "MailingAddress", ColumnDescription = "通信地址", IsNullable = true)]
|
||||
public string MailingAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证件类型
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "IdCardType", ColumnDescription = "证件类型", Length = 200, IsNullable = true)]
|
||||
public string IdCardType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证件号码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "IdCardNumber", ColumnDescription = "证件号码", Length = 200, IsNullable = true)]
|
||||
public string IdCardNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文化程度
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "CultureLevel", ColumnDescription = "文化程度", Length = 200, IsNullable = true)]
|
||||
public string CultureLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 政治面貌
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "PoliticalOutlook", ColumnDescription = "政治面貌", Length = 200, IsNullable = true)]
|
||||
public string PoliticalOutlook { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 毕业院校
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "College", ColumnDescription = "毕业院校", Length = 200, IsNullable = true)]
|
||||
public string College { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 学历
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Education", ColumnDescription = "学历", Length = 200, IsNullable = true)]
|
||||
public string Education { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 学制
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "EduLength", ColumnDescription = "学制", Length = 200, IsNullable = true)]
|
||||
public string EduLength { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 学位
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Degree", ColumnDescription = "学位", Length = 200, IsNullable = true)]
|
||||
public string Degree { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 手机
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Phone", ColumnDescription = "手机", Length = 200, IsNullable = true)]
|
||||
public string Phone { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 邮箱
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Email", ColumnDescription = "邮箱", Length = 200, IsNullable = true)]
|
||||
public string Email { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 家庭电话
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "HomeTel", ColumnDescription = "家庭电话", Length = 200, IsNullable = true)]
|
||||
public string HomeTel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 办公电话
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "OfficeTel", ColumnDescription = "办公电话", Length = 200, IsNullable = true)]
|
||||
public string OfficeTel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 紧急联系人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "EmergencyContact", ColumnDescription = "紧急联系人", Length = 200, IsNullable = true)]
|
||||
public string EmergencyContact { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 紧急联系人电话
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "EmergencyPhone", ColumnDescription = "紧急联系人电话", Length = 200, IsNullable = true)]
|
||||
public string EmergencyPhone { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 紧急联系人地址
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "EmergencyAddress", ColumnDescription = "紧急联系人地址", IsNullable = true)]
|
||||
public string EmergencyAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 员工编号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "EmpNo", ColumnDescription = "员工编号", Length = 200, IsNullable = true)]
|
||||
public string EmpNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 入职日期
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "EntryDate", ColumnDescription = "入职日期", Length = 200, IsNullable = true)]
|
||||
public string EntryDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 机构id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "OrgId", ColumnDescription = "机构id")]
|
||||
public long OrgId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 职位id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "PositionId", ColumnDescription = "职位id")]
|
||||
public long PositionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 职级
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "PositionLevel", ColumnDescription = "职级", Length = 200, IsNullable = true)]
|
||||
public string PositionLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 主管id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "DirectorId", ColumnDescription = "主管id", IsNullable = true)]
|
||||
public long DirectorId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 兼任信息
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "PositionJson", ColumnDescription = "兼任信息", Length = 100, IsNullable = true)]
|
||||
public string PositionJson { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 上次登录ip
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "LastLoginIp", ColumnDescription = "上次登录ip", Length = 200, IsNullable = true)]
|
||||
public string LastLoginIp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 上次登录地点
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "LastLoginAddress", ColumnDescription = "上次登录地点", Length = 200, IsNullable = true)]
|
||||
public string LastLoginAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 上次登录时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "LastLoginTime", ColumnDescription = "上次登录时间", IsNullable = true)]
|
||||
public DateTime? LastLoginTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 上次登录设备
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "LastLoginDevice", ColumnDescription = "上次登录设备", IsNullable = true)]
|
||||
public string LastLoginDevice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最新登录ip
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "LatestLoginIp", ColumnDescription = "最新登录ip", Length = 200, IsNullable = true)]
|
||||
public string LatestLoginIp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最新登录地点
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "LatestLoginAddress", ColumnDescription = "最新登录地点", Length = 200, IsNullable = true)]
|
||||
public string LatestLoginAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最新登录时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "LatestLoginTime", ColumnDescription = "最新登录时间", IsNullable = true)]
|
||||
public DateTime? LatestLoginTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最新登录设备
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "LatestLoginDevice", ColumnDescription = "最新登录设备", IsNullable = true)]
|
||||
public string LatestLoginDevice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户状态
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Status", ColumnDescription = "用户状态", Length = 200, IsNullable = true)]
|
||||
public string Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "SortCode", ColumnDescription = "排序码", IsNullable = true)]
|
||||
public int? SortCode { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,202 @@
|
||||
namespace SimpleAdmin.System;
|
||||
|
||||
/// <summary>
|
||||
/// 代码生成基础
|
||||
///</summary>
|
||||
[SugarTable("gen_basic", TableDescription = "代码生成基础")]
|
||||
[Tenant(SqlSugarConst.DB_DEFAULT)]
|
||||
public class GenBasic : BaseEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 所属库
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ConfigId", ColumnDescription = "库名", Length = 200)]
|
||||
public virtual string ConfigId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 主表
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "DbTable", ColumnDescription = "主表", Length = 200)]
|
||||
public virtual string DbTable { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 表实体名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "EntityName", ColumnDescription = "表实体名称", Length = 200)]
|
||||
public virtual string EntityName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 功能列表
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Functions", ColumnDescription = "功能列表", Length = 200, IsNullable = false)]
|
||||
public virtual string Functions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据权限
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "DataPermission", ColumnDescription = "数据权限", Length = 200, IsNullable = false)]
|
||||
public virtual string DataPermission { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 生成模版
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ModuleType", ColumnDescription = "生成模版", Length = 200, IsNullable = false)]
|
||||
public virtual string ModuleType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 树Id字段
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "TreeId", ColumnDescription = "树Id字段", Length = 200, IsNullable = true)]
|
||||
public virtual string TreeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 树父Id字段
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "TreePid", ColumnDescription = "树父Id字段", Length = 200, IsNullable = true)]
|
||||
public virtual string TreePid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 树名称字段
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "TreeName", ColumnDescription = "树名称字段", Length = 200, IsNullable = true)]
|
||||
public virtual string TreeName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 关联子表名
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ChildTable", ColumnDescription = "关联子表名", Length = 200, IsNullable = true)]
|
||||
public virtual string ChildTable { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 关联子表外键
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ChildFk", ColumnDescription = "关联子表外键", Length = 200, IsNullable = true)]
|
||||
public virtual string ChildFk { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 移除表前缀
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "TablePrefix", ColumnDescription = "移除表前缀", Length = 200)]
|
||||
public virtual string TablePrefix { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 生成方式
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "GenerateType", ColumnDescription = "生成方式", Length = 200)]
|
||||
public virtual string GenerateType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属模块
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Module", ColumnDescription = "所属模块")]
|
||||
public virtual long Module { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 上级目录
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "MenuPid", ColumnDescription = "上级目录")]
|
||||
public virtual long MenuPid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 业务名
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "RouteName", ColumnDescription = "路由名", Length = 200)]
|
||||
public virtual string RouteName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图标
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Icon", ColumnDescription = "图标", Length = 200)]
|
||||
public virtual string Icon { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 功能名
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "FunctionName", ColumnDescription = "功能名", Length = 200)]
|
||||
public virtual string FunctionName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 功能名后缀
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "FunctionNameSuffix", ColumnDescription = "功能名后缀", Length = 200, IsNullable = true)]
|
||||
public virtual string FunctionNameSuffix { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 业务名
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "BusName", ColumnDescription = "业务名", Length = 200)]
|
||||
public virtual string BusName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类名
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ClassName", ColumnDescription = "类名", Length = 200)]
|
||||
public virtual string ClassName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 表单布局
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "FormLayout", ColumnDescription = "表单布局", Length = 200)]
|
||||
public virtual string FormLayout { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 使用栅格
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "GridWhether", ColumnDescription = "使用栅格", Length = 200)]
|
||||
public virtual string GridWhether { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 左侧树
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "LeftTree", ColumnDescription = "使用左侧树", Length = 200)]
|
||||
public virtual string LeftTree { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 前端项目路径
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "FrontedPath", ColumnDescription = "前端项目路径", IsNullable = true, Length = 200)]
|
||||
public virtual string FrontedPath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 服务代码存放项目
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ServicePosition", ColumnDescription = "服务代码存放项目", IsNullable = true, Length = 200)]
|
||||
public virtual string ServicePosition { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 服务代码存放文件夹
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ServiceDictionary", ColumnDescription = "服务代码存放文件夹", IsNullable = true, Length = 200)]
|
||||
public virtual string ServiceDictionary { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 控制器代码存放位置
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ControllerPosition", ColumnDescription = "控制器代码存放位置", IsNullable = true, Length = 200)]
|
||||
public virtual string ControllerPosition { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 控制器代码存放文件夹
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ControllerDictionary", ColumnDescription = "控制器代码存放文件夹", IsNullable = true, Length = 200)]
|
||||
public virtual string ControllerDictionary { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 作者
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "AuthorName", ColumnDescription = "作者", Length = 200)]
|
||||
public virtual string AuthorName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "SortCode", ColumnDescription = "排序")]
|
||||
public virtual int SortCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 功能列表
|
||||
///</summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public virtual List<string> FuncList { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,154 @@
|
||||
namespace SimpleAdmin.System;
|
||||
|
||||
/// <summary>
|
||||
/// 代码生成配置
|
||||
///</summary>
|
||||
[SugarTable("gen_config", TableDescription = "代码生成配置")]
|
||||
[Tenant(SqlSugarConst.DB_DEFAULT)]
|
||||
public class GenConfig : BaseEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 基础ID
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "BasicId", ColumnDescription = "基础配置ID")]
|
||||
public long BasicId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 字段排序
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "FieldIndex", ColumnDescription = "字段排序", IsNullable = true)]
|
||||
public int FieldIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否主键
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "IsPrimaryKey", ColumnDescription = "是否主键", Length = 200)]
|
||||
public string IsPrimaryKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 字段
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "FieldName", ColumnDescription = "字段", Length = 200)]
|
||||
public string FieldName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "FieldRemark", ColumnDescription = "名称", Length = 200)]
|
||||
public string FieldRemark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类型
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "FieldType", ColumnDescription = "类型", Length = 200)]
|
||||
public string FieldType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 实体类型
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "FieldNetType", ColumnDescription = "实体类型", Length = 200)]
|
||||
public string FieldNetType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 作用类型
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "EffectType", ColumnDescription = "作用类型", Length = 200)]
|
||||
public string EffectType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 外键显示字段
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "FkEntityName", ColumnDescription = "外键实体名称", Length = 200, IsNullable = true)]
|
||||
public string FkEntityName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 外键ID
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "FkColumnId", ColumnDescription = "外键ID", Length = 200, IsNullable = true)]
|
||||
public string FkColumnId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 外键显示字段
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "FkColumnName", ColumnDescription = "外键显示字段", Length = 200, IsNullable = true)]
|
||||
public string FkColumnName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 字典
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "DictTypeCode", ColumnDescription = "字典", Length = 200, IsNullable = true)]
|
||||
public string DictTypeCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 列宽度
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Width", ColumnDescription = "列宽度")]
|
||||
public int Width { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 列表显示
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "WhetherTable", ColumnDescription = "列表显示", Length = 200)]
|
||||
public string WhetherTable { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 列省略
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "WhetherRetract", ColumnDescription = "列省略", Length = 200)]
|
||||
public string WhetherRetract { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 可伸缩列
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "WhetherResizable", ColumnDescription = "可伸缩列", Length = 200)]
|
||||
public string WhetherResizable { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否增改
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "WhetherAddUpdate", ColumnDescription = "是否增改", Length = 200)]
|
||||
public string WhetherAddUpdate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否导入导出
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "WhetherImportExport", ColumnDescription = "是否导入导出", Length = 200)]
|
||||
public string WhetherImportExport { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 必填
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "WhetherRequired", ColumnDescription = "必填", Length = 200)]
|
||||
public string WhetherRequired { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 查询
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "QueryWhether", ColumnDescription = "查询", Length = 200)]
|
||||
public string QueryWhether { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 查询方式
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "QueryType", ColumnDescription = "查询方式", Length = 200, IsNullable = true)]
|
||||
public string QueryType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "SortCode", ColumnDescription = "排序")]
|
||||
public int SortCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 字段名首字母小写
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string FieldNameFirstLower { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 字段名首字母大写
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string FieldNameFirstUpper { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
// 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.System;
|
||||
|
||||
/// <summary>
|
||||
/// 配置
|
||||
///</summary>
|
||||
[SugarTable("sys_config", TableDescription = "配置")]
|
||||
[Tenant(SqlSugarConst.DB_DEFAULT)]
|
||||
public class SysConfig : BaseEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 配置键
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ConfigKey", ColumnDescription = "配置键", Length = 200)]
|
||||
public virtual string ConfigKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 配置值
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ConfigValue", ColumnDescription = "配置值", ColumnDataType = StaticConfig.CodeFirst_BigString)]
|
||||
public virtual string ConfigValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分类
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Category", ColumnDescription = "分类", Length = 200)]
|
||||
public string Category { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Remark", ColumnDescription = "备注", Length = 200, IsNullable = true)]
|
||||
public string Remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "SortCode", ColumnDescription = "排序码", IsNullable = true)]
|
||||
public int SortCode { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
// 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.System;
|
||||
|
||||
/// <summary>
|
||||
/// 字典
|
||||
///</summary>
|
||||
[SugarTable("sys_dict", TableDescription = "字典表")]
|
||||
[Tenant(SqlSugarConst.DB_DEFAULT)]
|
||||
public class SysDict : BaseEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 父id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ParentId", ColumnDescription = "父id")]
|
||||
public virtual long ParentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 字典文字
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "DictLabel", ColumnDescription = "字典文字", Length = 200)]
|
||||
public virtual string DictLabel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 字典值
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "DictValue", ColumnDescription = "字典值", Length = 200)]
|
||||
public virtual string DictValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分类
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Category", ColumnDescription = "分类", Length = 200)]
|
||||
public virtual string Category { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "SortCode", ColumnDescription = "排序码")]
|
||||
public int SortCode { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 子节点
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public List<SysDict> Children { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
// 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.System;
|
||||
|
||||
/// <summary>
|
||||
/// 文件表
|
||||
///</summary>
|
||||
[SugarTable("sys_file", TableDescription = "文件表")]
|
||||
[Tenant(SqlSugarConst.DB_DEFAULT)]
|
||||
public class SysFile : DataEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 存储引擎
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Engine", ColumnDescription = "存储引擎", Length = 200)]
|
||||
public string Engine { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 存储桶
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Bucket", ColumnDescription = "存储桶", Length = 200)]
|
||||
public string Bucket { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Name", ColumnDescription = "文件名称")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件后缀
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Suffix", ColumnDescription = "文件后缀", Length = 200)]
|
||||
public string Suffix { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件大小kb
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "SizeKb", ColumnDescription = "文件大小kb")]
|
||||
public long SizeKb { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件大小(格式化后)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "SizeInfo", ColumnDescription = "文件大小(格式化后)", Length = 200)]
|
||||
public string SizeInfo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件的对象名(唯一名称)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ObjName", ColumnDescription = "文件的对象名(唯一名称)")]
|
||||
public string ObjName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件存储路径
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "StoragePath", ColumnDescription = "文件存储路径")]
|
||||
public string StoragePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件下载路径
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "DownloadPath", ColumnDescription = "文件下载路径", IsNullable = true)]
|
||||
public string DownloadPath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图片缩略图
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Thumbnail", ColumnDescription = "图片缩略图", IsNullable = true, ColumnDataType = StaticConfig.CodeFirst_BigString)]
|
||||
public string Thumbnail { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
// 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.System;
|
||||
|
||||
/// <summary>
|
||||
/// 操作日志表
|
||||
///</summary>
|
||||
[SugarTable("sys_log_operate_{year}{month}{day}", TableDescription = "操作日志表")]
|
||||
[Tenant(SqlSugarConst.DB_DEFAULT)]
|
||||
public class SysLogOperate : SysLogVisit
|
||||
{
|
||||
/// <summary>
|
||||
/// 具体消息
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ExeMessage", ColumnDescription = "具体消息", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
|
||||
public string ExeMessage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ClassName", ColumnDescription = "类名称", Length = 200)]
|
||||
public string ClassName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 方法名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "MethodName", ColumnDescription = "方法名称", Length = 200)]
|
||||
public string MethodName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 请求方式
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ReqMethod", ColumnDescription = "请求方式", Length = 200, IsNullable = true)]
|
||||
public string ReqMethod { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 请求地址
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ReqUrl", ColumnDescription = "请求地址", ColumnDataType = StaticConfig.CodeFirst_BigString)]
|
||||
public string ReqUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 请求参数
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ParamJson", ColumnDescription = "请求参数", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
|
||||
public string ParamJson { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回结果
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ResultJson", ColumnDescription = "返回结果", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
|
||||
public string ResultJson { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
// 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.System;
|
||||
|
||||
/// <summary>
|
||||
/// 访问日志表
|
||||
///</summary>
|
||||
[SugarTable("sys_log_visit_{year}{month}{day}", TableDescription = "访问日志表")]
|
||||
[SplitTable(SplitType.Year)]//按年分表 (自带分表支持 年、季、月、周、日)
|
||||
[Tenant(SqlSugarConst.DB_DEFAULT)]
|
||||
public class SysLogVisit : BaseEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 日志分类
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Category", ColumnDescription = "日志分类", Length = 200)]
|
||||
public string Category { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 日志名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Name", ColumnDescription = "日志名称", Length = 200)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 执行状态
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ExeStatus", ColumnDescription = "执行状态", Length = 200)]
|
||||
public string ExeStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作ip
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "OpIp", ColumnDescription = "操作ip", Length = 200)]
|
||||
public string OpIp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作地址
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "OpAddress", ColumnDescription = "操作地址", Length = 200)]
|
||||
public string OpAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作浏览器
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "OpBrowser", ColumnDescription = "操作浏览器", Length = 200)]
|
||||
public string OpBrowser { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作系统
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "OpOs", ColumnDescription = "操作系统", Length = 200)]
|
||||
public string OpOs { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "OpTime", ColumnDescription = "操作时间")]
|
||||
[SplitField]//分表字段 在插入的时候会根据这个字段插入哪个表,在更新删除的时候用这个字段找出相关表
|
||||
public DateTime OpTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作人姓名
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "OpUser", ColumnDescription = "操作人姓名", Length = 200, IsNullable = true)]
|
||||
public string OpUser { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作人姓名
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "OpAccount", ColumnDescription = "操作人账号", Length = 200, IsNullable = true)]
|
||||
public string OpAccount { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
// 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.System;
|
||||
|
||||
/// <summary>
|
||||
/// 站内信
|
||||
///</summary>
|
||||
[SugarTable("sys_message", TableDescription = "站内信")]
|
||||
[Tenant(SqlSugarConst.DB_DEFAULT)]
|
||||
public class SysMessage : BaseEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 分类
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Category", ColumnDescription = "分类", Length = 200)]
|
||||
public virtual string Category { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 主题
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Subject", ColumnDescription = "主题")]
|
||||
public virtual string Subject { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 接收人类型
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "ReceiverType", ColumnDescription = "接收人类型")]
|
||||
public virtual string ReceiverType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 接收人列表
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "ReceiverInfo", ColumnDescription = "接收人列表", IsJson = true)]
|
||||
public virtual List<ReceiverInfo> ReceiverInfo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发送方式
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "SendWay", ColumnDescription = "发送方式")]
|
||||
public virtual string SendWay { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发送时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "发送时间")]
|
||||
public virtual DateTime SendTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 正文
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Content", ColumnDescription = "正文", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
|
||||
public virtual string Content { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 延迟时间(秒)
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public int DelayTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 已读情况
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public List<ReceiverDetail> ReceiverDetail { get; set; } = new List<ReceiverDetail>();
|
||||
|
||||
/// <summary>
|
||||
/// 发送时间格式化
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string SendTimeFormat { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分组查询用
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public int Index2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否已读
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public bool Read { get; set; }
|
||||
}
|
||||
|
||||
public class ReceiverInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// ID
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
}
|
||||
|
||||
public class ReceiverDetail
|
||||
{
|
||||
/// <summary>
|
||||
/// ID
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否已读
|
||||
/// </summary>
|
||||
public bool Read { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
// 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.System;
|
||||
|
||||
/// <summary>
|
||||
/// 用户消息表
|
||||
///</summary>
|
||||
[SugarTable("sys_message_user", TableDescription = "用户消息表")]
|
||||
[Tenant(SqlSugarConst.DB_DEFAULT)]
|
||||
public class SysMessageUser : BaseEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 消息Id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "MessageId", ColumnDescription = "消息Id", IsNullable = false)]
|
||||
public long MessageId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户Id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "UserId", ColumnDescription = "用户Id", IsNullable = false)]
|
||||
public long UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 已读未读
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Read", ColumnDescription = "已读未读", IsNullable = false)]
|
||||
public bool Read { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
// 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.System;
|
||||
|
||||
/// <summary>
|
||||
/// 组织
|
||||
///</summary>
|
||||
[SugarTable("sys_org", TableDescription = "组织")]
|
||||
[Tenant(SqlSugarConst.DB_DEFAULT)]
|
||||
[CodeGen]
|
||||
public class SysOrg : BaseEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 父id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ParentId", ColumnDescription = "父id")]
|
||||
public long ParentId { get; set; }
|
||||
|
||||
[SugarColumn(ColumnName = "ParentIdList", ColumnDescription = "父id列表", IsNullable = true, IsJson = true)]
|
||||
public List<long> ParentIdList { get; set; } = new List<long>();
|
||||
|
||||
/// <summary>
|
||||
/// 主管ID
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "DirectorId", ColumnDescription = "主管ID", IsNullable = true)]
|
||||
public long? DirectorId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Name", ColumnDescription = "名称", Length = 200)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 全称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Names", ColumnDescription = "全称", Length = 500)]
|
||||
public string Names { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 编码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Code", ColumnDescription = "编码", Length = 200)]
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分类
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Category", ColumnDescription = "分类", Length = 200)]
|
||||
public string Category { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "SortCode", ColumnDescription = "排序码", IsNullable = true)]
|
||||
public int? SortCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 主管信息
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public UserSelectorOutPut DirectorInfo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 子节点
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public List<SysOrg> Children { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设置为叶子节点(设置了loadData时有效)
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public bool? Leaf { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
// 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.System;
|
||||
|
||||
/// <summary>
|
||||
/// 职位表
|
||||
///</summary>
|
||||
[SugarTable("sys_position", TableDescription = "职位表")]
|
||||
[Tenant(SqlSugarConst.DB_DEFAULT)]
|
||||
[CodeGen]
|
||||
public class SysPosition : DataEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 组织id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "OrgId", ColumnDescription = "组织id")]
|
||||
public virtual long OrgId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Name", ColumnDescription = "名称", Length = 200)]
|
||||
public virtual string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 编码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Code", ColumnDescription = "编码", Length = 200)]
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分类
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Category", ColumnDescription = "分类", Length = 200)]
|
||||
public virtual string Category { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "SortCode", ColumnDescription = "排序码", IsNullable = true)]
|
||||
public int? SortCode { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
// 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.System;
|
||||
|
||||
/// <summary>
|
||||
/// 系统关系表
|
||||
///</summary>
|
||||
[SugarTable("sys_relation", TableDescription = "系统关系表")]
|
||||
[Tenant(SqlSugarConst.DB_DEFAULT)]
|
||||
public class SysRelation : PrimaryKeyEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 对象ID
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ObjectId", ColumnDescription = "对象ID", IsNullable = false)]
|
||||
public long ObjectId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 目标ID
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "TargetId", ColumnDescription = "目标ID", IsNullable = true)]
|
||||
public string TargetId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分类
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Category", ColumnDescription = "分类", Length = 200, IsNullable = false)]
|
||||
public string Category { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,191 @@
|
||||
// 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.System;
|
||||
|
||||
/// <summary>
|
||||
/// 资源
|
||||
///</summary>
|
||||
[SugarTable("sys_resource", TableDescription = "资源")]
|
||||
[Tenant(SqlSugarConst.DB_DEFAULT)]
|
||||
public class SysResource : 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 = "Component", ColumnDescription = "组件", Length = 200, IsNullable = true)]
|
||||
public string Component { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图标
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Icon", ColumnDescription = "图标", Length = 200, IsNullable = true)]
|
||||
public virtual string Icon { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否在菜单中隐藏, 需要高亮的 path (通常用作详情页高亮父级菜单)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "ActiveMenu", ColumnDescription = "需要高亮的 path (通常用作详情页高亮父级菜单)", Length = 200, IsNullable = true)]
|
||||
public string ActiveMenu { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否在菜单中隐藏 (通常列表详情页需要隐藏)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "IsHide", ColumnDescription = "是否在菜单中隐藏 (通常列表详情页需要隐藏) ", IsNullable = true)]
|
||||
public bool IsHide { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否在菜单中隐藏 (通常列表详情页需要隐藏)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "IsFull", ColumnDescription = "菜单是否全屏 (示例:数据大屏页面)", IsNullable = true)]
|
||||
public bool IsFull { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 菜单是否固定在标签页中 (首页通常是固定项)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "IsAffix", ColumnDescription = "菜单是否固定在标签页中 (首页通常是固定项)", IsNullable = true)]
|
||||
public bool IsAffix { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 菜单是否固定在标签页中 (首页通常是固定项)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "IsKeepAlive", ColumnDescription = " 当前路由是否缓存", IsNullable = true)]
|
||||
public bool IsKeepAlive { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否为首页
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "IsHome", ColumnDescription = " 是否为首页", IsNullable = true)]
|
||||
public bool IsHome { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "SortCode", ColumnDescription = "排序码", IsNullable = true)]
|
||||
public int? SortCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 外链地址
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "IsLink", ColumnDescription = "外链地址", IsNullable = true)]
|
||||
public string IsLink { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 菜单元标签
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public Meta Meta { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 子节点
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public List<SysResource> Children { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 菜单元标签
|
||||
/// </summary>
|
||||
public class Meta
|
||||
{
|
||||
/// <summary>
|
||||
/// 图标
|
||||
/// </summary>
|
||||
public string Icon { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标题
|
||||
/// </summary>
|
||||
public string Title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否在菜单中隐藏, 需要高亮的 path (通常用作详情页高亮父级菜单)
|
||||
///</summary>
|
||||
public string ActiveMenu { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否在菜单中隐藏 (通常列表详情页需要隐藏)
|
||||
///</summary>
|
||||
public bool IsHide { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 路由外链时填写的访问地址
|
||||
/// </summary>
|
||||
public string IsLink { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// 是否在菜单中隐藏 (通常列表详情页需要隐藏)
|
||||
///</summary>
|
||||
public bool IsFull { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 菜单是否固定在标签页中 (首页通常是固定项)
|
||||
///</summary>
|
||||
public bool IsAffix { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 菜单是否固定在标签页中 (首页通常是固定项)
|
||||
///</summary>
|
||||
public bool IsKeepAlive { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
// 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.System;
|
||||
|
||||
/// <summary>
|
||||
/// 角色
|
||||
///</summary>
|
||||
[SugarTable("sys_role", TableDescription = "角色")]
|
||||
[Tenant(SqlSugarConst.DB_DEFAULT)]
|
||||
public class SysRole : DataEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 组织id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "OrgId", ColumnDescription = "组织id", IsNullable = true)]
|
||||
public long? OrgId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Name", ColumnDescription = "名称", Length = 200, IsNullable = false)]
|
||||
public virtual string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 编码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Code", ColumnDescription = "编码", Length = 200, IsNullable = false)]
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分类
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Category", ColumnDescription = "分类", Length = 200, IsNullable = false)]
|
||||
public virtual string Category { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 默认数据范围
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "DefaultDataScope", ColumnDescription = "默认数据范围", IsJson = true, ColumnDataType = StaticConfig.CodeFirst_BigString,
|
||||
IsNullable = false)]
|
||||
public virtual DefaultDataScope DefaultDataScope { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "SortCode", ColumnDescription = "排序码", IsNullable = true)]
|
||||
public int? SortCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户列表
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public List<UserSelectorOutPut> UserList { get; set; } = new List<UserSelectorOutPut>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 默认数据范围
|
||||
/// </summary>
|
||||
public class DefaultDataScope
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据范围等级
|
||||
/// </summary>
|
||||
public int Level { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据范围
|
||||
/// </summary>
|
||||
public string ScopeCategory { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 自定义机构范围列表
|
||||
/// </summary>
|
||||
public List<long> ScopeDefineOrgIdList { get; set; } = new List<long>();
|
||||
}
|
||||
@@ -0,0 +1,393 @@
|
||||
// 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.System;
|
||||
|
||||
/// <summary>
|
||||
/// 用户信息表
|
||||
///</summary>
|
||||
[SugarTable("sys_user", TableDescription = "用户信息表")]
|
||||
[Tenant(SqlSugarConst.DB_DEFAULT)]
|
||||
[BatchEdit]
|
||||
[CodeGen]
|
||||
public class SysUser : BaseEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 头像
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Avatar", ColumnDescription = "头像", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
|
||||
public virtual string Avatar { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 签名
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Signature", ColumnDescription = "签名", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
|
||||
public string Signature { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 账号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Account", ColumnDescription = "账号", Length = 200, IsNullable = false)]
|
||||
public virtual string Account { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 密码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Password", ColumnDescription = "密码", Length = 200, IsNullable = false)]
|
||||
public string Password { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 姓名
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Name", ColumnDescription = "姓名", Length = 200, IsNullable = true)]
|
||||
public virtual string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 昵称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Nickname", ColumnDescription = "昵称", Length = 200, IsNullable = true)]
|
||||
public string Nickname { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 性别
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Gender", ColumnDescription = "性别", Length = 200, IsNullable = true)]
|
||||
public string Gender { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 出生日期
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Birthday", ColumnDescription = "出生日期", Length = 200, IsNullable = true)]
|
||||
public string Birthday { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 民族
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Nation", ColumnDescription = "民族", Length = 200, IsNullable = true)]
|
||||
public string Nation { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 籍贯
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "NativePlace", ColumnDescription = "籍贯", Length = 200, IsNullable = true)]
|
||||
public string NativePlace { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 家庭住址
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "HomeAddress", ColumnDescription = "家庭住址", IsNullable = true)]
|
||||
public string HomeAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 通信地址
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "MailingAddress", ColumnDescription = "通信地址", IsNullable = true)]
|
||||
public string MailingAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证件类型
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "IdCardType", ColumnDescription = "证件类型", Length = 200, IsNullable = true)]
|
||||
public string IdCardType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证件号码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "IdCardNumber", ColumnDescription = "证件号码", Length = 200, IsNullable = true)]
|
||||
public string IdCardNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文化程度
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "CultureLevel", ColumnDescription = "文化程度", Length = 200, IsNullable = true)]
|
||||
public string CultureLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 政治面貌
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "PoliticalOutlook", ColumnDescription = "政治面貌", Length = 200, IsNullable = true)]
|
||||
public string PoliticalOutlook { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 毕业院校
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "College", ColumnDescription = "毕业院校", Length = 200, IsNullable = true)]
|
||||
public string College { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 学历
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Education", ColumnDescription = "学历", Length = 200, IsNullable = true)]
|
||||
public string Education { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 学制
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "EduLength", ColumnDescription = "学制", Length = 200, IsNullable = true)]
|
||||
public string EduLength { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 学位
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Degree", ColumnDescription = "学位", Length = 200, IsNullable = true)]
|
||||
public string Degree { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 手机
|
||||
/// 这里使用了SM4自动加密解密
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Phone", ColumnDescription = "手机", Length = 200, IsNullable = true)]
|
||||
public string Phone { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 邮箱
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "Email", ColumnDescription = "邮箱", Length = 200, IsNullable = true)]
|
||||
public string Email { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 家庭电话
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "HomeTel", ColumnDescription = "家庭电话", Length = 200, IsNullable = true)]
|
||||
public string HomeTel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 办公电话
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "OfficeTel", ColumnDescription = "办公电话", Length = 200, IsNullable = true)]
|
||||
public string OfficeTel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 紧急联系人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "EmergencyContact", ColumnDescription = "紧急联系人", Length = 200, IsNullable = true)]
|
||||
public string EmergencyContact { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 紧急联系人电话
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "EmergencyPhone", ColumnDescription = "紧急联系人电话", Length = 200, IsNullable = true)]
|
||||
public string EmergencyPhone { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 紧急联系人地址
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "EmergencyAddress", ColumnDescription = "紧急联系人地址", IsNullable = true)]
|
||||
public string EmergencyAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 员工编号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "EmpNo", ColumnDescription = "员工编号", Length = 200, IsNullable = true)]
|
||||
public string EmpNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 入职日期
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "EntryDate", ColumnDescription = "入职日期", Length = 200, IsNullable = true)]
|
||||
public string EntryDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 机构id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "OrgId", ColumnDescription = "机构id", IsNullable = false)]
|
||||
public virtual long OrgId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 职位id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "PositionId", ColumnDescription = "职位id", IsNullable = false)]
|
||||
public virtual long PositionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 职级
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "PositionLevel", ColumnDescription = "职级", Length = 200, IsNullable = true)]
|
||||
public string PositionLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 主管id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "DirectorId", ColumnDescription = "主管id", IsNullable = true)]
|
||||
public long? DirectorId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 上次修改密码时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "PwdRemindUpdateTime", ColumnDescription = "密码提醒修改时间", IsNullable = true)]
|
||||
public DateTime? PwdRemindUpdateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 上次登录ip
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "LastLoginIp", ColumnDescription = "上次登录ip", Length = 200, IsNullable = true)]
|
||||
public string LastLoginIp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 上次登录地点
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "LastLoginAddress", ColumnDescription = "上次登录地点", Length = 200, IsNullable = true)]
|
||||
public string LastLoginAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 上次登录时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "LastLoginTime", ColumnDescription = "上次登录时间", IsNullable = true)]
|
||||
public DateTime? LastLoginTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 上次登录设备
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "LastLoginDevice", ColumnDescription = "上次登录设备", IsNullable = true)]
|
||||
public string LastLoginDevice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最新登录ip
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "LatestLoginIp", ColumnDescription = "最新登录ip", Length = 200, IsNullable = true)]
|
||||
public string LatestLoginIp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最新登录地点
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "LatestLoginAddress", ColumnDescription = "最新登录地点", Length = 200, IsNullable = true)]
|
||||
public string LatestLoginAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最新登录时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "LatestLoginTime", ColumnDescription = "最新登录时间", IsNullable = true)]
|
||||
public DateTime? LatestLoginTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最新登录设备
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "LatestLoginDevice", ColumnDescription = "最新登录设备", IsNullable = true)]
|
||||
public string LatestLoginDevice { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 排序码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "SortCode", ColumnDescription = "排序码", IsNullable = true)]
|
||||
public int? SortCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 默认模块
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "DefaultModule", ColumnDescription = "默认模块", IsNullable = true)]
|
||||
public long? DefaultModule { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 机构信息
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string OrgName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 机构信息全称
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string OrgNames { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 职位信息
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string PositionName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 组织和机构ID列表,组织ID从上到下最后是职位
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true, IsJson = true)]
|
||||
public List<long> OrgAndPosIdList { get; set; } = new List<long>();
|
||||
|
||||
/// <summary>
|
||||
/// 主管信息
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public UserSelectorOutPut DirectorInfo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 按钮码集合
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public List<string> ButtonCodeList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 权限码集合
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public List<string> PermissionCodeList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 角色码集合
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public List<string> RoleCodeList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 角色ID集合
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public List<long> RoleIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据范围集合
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public List<DataScope> DataScopeList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 默认数据范围
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public DefaultDataScope DefaultDataScope { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 机构及以下机构ID集合
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public List<long> ScopeOrgChildList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 机构及以下机构ID集合
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public List<SysResource> ModuleList { get; set; } = new List<SysResource>();
|
||||
|
||||
/// <summary>
|
||||
/// 租户Id
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public long? TenantId { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 数据范围类
|
||||
/// </summary>
|
||||
public class DataScope
|
||||
{
|
||||
/// <summary>
|
||||
/// API接口
|
||||
/// </summary>
|
||||
public string ApiUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据范围分类
|
||||
/// </summary>
|
||||
public string ScopeCategory { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据范围的机构ID列表
|
||||
/// </summary>
|
||||
public List<long>? DataScopes { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user