74 lines
1.8 KiB
C#
Raw Normal View History

2023-07-21 18:17:58 +08:00
namespace ZR.Model.System
2021-08-23 16:57:25 +08:00
{
/// <summary>
/// 部门表
/// </summary>
2023-06-07 22:28:06 +08:00
[SugarTable("sys_dept", "部门配置表")]
2021-11-27 09:43:04 +08:00
[Tenant("0")]
2023-06-07 22:28:06 +08:00
public class SysDept : SysBase
2021-08-23 16:57:25 +08:00
{
2023-05-04 18:20:18 +08:00
/// <summary>
/// 部门ID
/// </summary>
2023-07-21 18:17:58 +08:00
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
[JsonConverter(typeof(ValueToStringConverter))]
2021-08-23 16:57:25 +08:00
public long DeptId { get; set; }
2023-05-04 18:20:18 +08:00
/// <summary>
/// 父部门ID
/// </summary>
2021-08-23 16:57:25 +08:00
public long ParentId { get; set; }
2023-05-04 18:20:18 +08:00
/// <summary>
/// 祖级列表
/// </summary>
2021-08-23 16:57:25 +08:00
public string Ancestors { get; set; }
2023-05-04 18:20:18 +08:00
/// <summary>
/// 部门名称
/// </summary>
2023-06-07 22:28:06 +08:00
[SugarColumn(Length = 30, ExtendedAttribute = ProteryConstant.NOTNULL)]
2021-08-23 16:57:25 +08:00
public string DeptName { get; set; }
2023-05-04 18:20:18 +08:00
/// <summary>
/// 显示顺序
/// </summary>
2021-08-23 16:57:25 +08:00
public int OrderNum { get; set; }
2023-05-04 18:20:18 +08:00
/// <summary>
/// 负责人
/// </summary>
2023-06-07 22:28:06 +08:00
[SugarColumn(Length = 30)]
2021-08-23 16:57:25 +08:00
public string Leader { get; set; }
2023-05-04 18:20:18 +08:00
/// <summary>
/// 联系电话
/// </summary>
2023-06-07 22:28:06 +08:00
[SugarColumn(Length = 11)]
2021-08-23 16:57:25 +08:00
public string Phone { get; set; }
2023-05-04 18:20:18 +08:00
/// <summary>
/// 邮箱
/// </summary>
2023-06-07 22:28:06 +08:00
[SugarColumn(Length = 50)]
2021-08-23 16:57:25 +08:00
public string Email { get; set; }
2023-05-04 18:20:18 +08:00
/// <summary>
/// 部门状态:0正常,1停用
/// </summary>
2023-07-21 18:17:58 +08:00
[SugarColumn(DefaultValue = "0")]
public int Status { get; set; }
2021-08-23 16:57:25 +08:00
/// <summary>
/// 删除标志0代表存在 2代表删除
/// </summary>
2023-07-21 18:17:58 +08:00
[SugarColumn(DefaultValue = "0")]
public int DelFlag { get; set; }
2021-08-23 16:57:25 +08:00
/// <summary>
/// 子菜单
/// </summary>
2023-06-07 22:28:06 +08:00
public List<SysDept> children = new();
2021-08-23 16:57:25 +08:00
}
}