You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.9 KiB
58 lines
1.9 KiB
using SqlSugar;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using WoodWood.Util.Validations;
|
|
|
|
namespace Wood.Entity.SystemManage
|
|
{
|
|
/// <summary>
|
|
/// 部门组织信息
|
|
/// </summary>
|
|
[SugarTable("SysOrg", "部门组织信息")]
|
|
public class OrgEntity : EntityTenantBaseExtra
|
|
{
|
|
/// <summary>
|
|
/// 父级id
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "父级id", DefaultValue = "0")]
|
|
public long ParentId { get; set; } = 0;
|
|
/// <summary>
|
|
/// 部门名称
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "部门名称", Length = 16)]
|
|
[Required]
|
|
public string OrgName { get; set; } = "";
|
|
/// <summary>
|
|
/// 部门编码
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "部门编码", Length = 16)]
|
|
[Required]
|
|
[UniqueValue(ErrorMessage = "机构编码不能重复!")]
|
|
public string FormCode { get; set; } = "";
|
|
/// <summary>
|
|
/// 部门简写
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "部门简写", Length = 16, IsNullable = true)]
|
|
public string? ShortName { get; set; }
|
|
/// <summary>
|
|
/// 部门电话
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "部门电话", Length = 16, IsNullable = true)]
|
|
public string? Telephone { get; set; }
|
|
/// <summary>
|
|
/// 邮箱
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "邮箱", Length = 64, IsNullable = true)]
|
|
public string? Email { get; set; }
|
|
/// <summary>
|
|
/// 负责人
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "负责人", DefaultValue = "0")]
|
|
public long PrincipalUserId { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// 排序
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "排序", DefaultValue = "0")]
|
|
public int Sort { get; set; } = 0;
|
|
}
|
|
}
|
|
|