Blame view

Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Domain/Authorization/AuthAggregateRoot.cs 1.24 KB
515fceeb   “wangming”   框架初始化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
  using SqlSugar;
  using Volo.Abp;
  using Volo.Abp.Auditing;
  using Volo.Abp.Data;
  using Volo.Abp.Domain.Entities;
  
  namespace Yi.Framework.Rbac.Domain.Authorization
  {    /// <summary>
       /// 第三方授权表
       ///</summary>
      [SugarTable("Auth")]
      public class AuthAggregateRoot : AggregateRoot<Guid>, ISoftDelete, IHasCreationTime
      {
  
          public AuthAggregateRoot() { }
  
          public AuthAggregateRoot(string authType, Guid userId, string openId)
          {
              AuthType = authType;
              OpenId = openId;
              UserId = userId;
  
          }
          public AuthAggregateRoot(string authType, Guid userId, string openId, string name) : this(authType, userId, openId)
          {
              Name = name;
          }
  
  
          [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
          public override Guid Id { get; protected set; }
          public Guid UserId { get; set; }
  
          public string OpenId { get; set; }
  
          public string Name { get; set; }
  
          public string AuthType { get; set; }
  
          public bool IsDeleted { get; set; }
  
          [SugarColumn(IsIgnore = true)]
          public override ExtraPropertyDictionary ExtraProperties { get; protected set; }
  
          public DateTime CreationTime { get; set; }
      }
  }