12345678910111213141516171819202122232425262728293031323334353637383940 |
- using FreeSql.DataAnnotations;
- using Newtonsoft.Json;
- using System.ComponentModel;
- namespace ZhonTai.Admin.Core.Entities;
- /// <summary>
- /// 实体租户数据权限
- /// </summary>
- public class EntityTenantWithData<TKey> : EntityBase, ITenant, IData
- {
- /// <summary>
- /// 租户Id
- /// </summary>
- [Description("租户Id")]
- [Column(Position = 2, CanUpdate = false)]
- [JsonProperty(Order = -20)]
- public long? TenantId { get; set; }
- /// <summary>
- /// 拥有者Id
- /// </summary>
- [Description("拥有者Id")]
- [Column(Position = -41)]
- public long? OwnerId { get; set; }
- /// <summary>
- /// 拥有者部门Id
- /// </summary>
- [Description("拥有者部门Id")]
- [Column(Position = -40)]
- public long? OwnerOrgId { get; set; }
- }
- /// <summary>
- /// 实体租户数据权限
- /// </summary>
- public class EntityTenantWithData : EntityTenantWithData<long>
- {
- }
|