You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using System.ComponentModel;
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
|
|
namespace DS.Module.Core.Data;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 机构实体基类
|
|
|
|
/// </summary>
|
|
|
|
public abstract class BaseOrgModel<TKey> : BaseModel<TKey>, IOrgId
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// 主键ID
|
|
|
|
/// </summary>
|
|
|
|
[Description("主键ID")]
|
|
|
|
[SqlSugar.SugarColumn(IsPrimaryKey = true, Length = 100, ColumnDescription = "主键ID")]
|
|
|
|
public TKey Id { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 机构Id
|
|
|
|
/// </summary>
|
|
|
|
[SqlSugar.SugarColumn(ColumnDescription = "机构Id", IsOnlyIgnoreUpdate = true)]
|
|
|
|
public long OrgId { get; set; } = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 机构实体基类
|
|
|
|
/// </summary>
|
|
|
|
public abstract class BaseOrgModelV2<TKey> : BaseModelV2<TKey>, IOrgId
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// 机构Id
|
|
|
|
/// </summary>
|
|
|
|
[SugarColumn(ColumnDescription = "机构Id", IsOnlyIgnoreUpdate = true)]
|
|
|
|
public long OrgId { get; set; }
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 共享机构实体基类
|
|
|
|
/// </summary>
|
|
|
|
/// <typeparam name="TKey"></typeparam>
|
|
|
|
public abstract class SharedOrgModel<TKey> : BaseModelV2<TKey>, ISharedOrgId
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// 机构Id
|
|
|
|
/// </summary>
|
|
|
|
[SugarColumn(ColumnDescription = "机构Id", IsNullable = false, IsOnlyIgnoreUpdate = true)]
|
|
|
|
public long OrgId { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 是否共享
|
|
|
|
/// </summary>
|
|
|
|
[SugarColumn(ColumnDescription = "是否共享", IsNullable = false, DefaultValue = "0")]
|
|
|
|
public bool IsShared { get; set; }
|
|
|
|
}
|