ow
This commit is contained in:
1 parent
479762b57e
commit
27284040cc
30 files changed
+3042
-428
No files matched your search
@@ -17,8 +17,17 @@ namespace CloudBuilder.Master.Data
|
||||
public FamilyPersonData? CurrentPerson { get; set; }
|
||||
public bool IsManager { get; set; } = false;
|
||||
|
||||
/// <summary>已认证成员:存在绑定到自己且已生效(ValidIndc=YES)的权限行,前端据此控制成员/权限选项卡可见性</summary>
|
||||
public bool IsMember { get; set; } = false;
|
||||
|
||||
public bool IsCanAmend { get; set; } = false;
|
||||
|
||||
/// <summary>自己已生效权限行绑定的族员 PersonId(空串=已过审但未绑定),前端据此切换「绑定账号/解除绑定」按钮</summary>
|
||||
public string SelfBindPersonId { get; set; } = "";
|
||||
|
||||
/// <summary>当前用户在本谱可编的族员 PersonId 集合(家支主线,与 HasPermission 同源);管理员不限量不下发,前端按 IsManager 短路</summary>
|
||||
public string[] CanAmendPersonIds { get; set; } = [];
|
||||
|
||||
public FamilyTreePermissionUserViewEntity[]? FamilyTreePermissions { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -113,6 +113,7 @@ builder.Entity<FamilyTreePermissionEntity>().HasKey(c => new {c.PersonId,c.TreeI
|
||||
builder.Entity<FamilyTreePermissionUserViewEntity>(eb => { eb.HasNoKey(); });
|
||||
|
||||
|
||||
|
||||
//***END***
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,9 +30,9 @@ namespace CloudBuilder.Master.Entity
|
||||
[Column("brief")]
|
||||
public string? Brief { get; set; }
|
||||
[Column("ancestor_person_id")]
|
||||
public string AncestorPersonId { get; set; }
|
||||
public string? AncestorPersonId { get; set; }
|
||||
[Column("tree_cover_filename")]
|
||||
public string TreeCoverFilename { get; set; }
|
||||
public string? TreeCoverFilename { get; set; }
|
||||
[Column("public_indc")]
|
||||
public string PublicIndc { get; set; }
|
||||
|
||||
|
||||
@@ -18,6 +18,8 @@ namespace CloudBuilder.Master.Service
|
||||
void RequestFamilyTreePermission(string treeId, string currentPermission);
|
||||
void ApproveFamilyTreePermission(string treeId, string currentPersonId, string userName, string managerIndc);
|
||||
void RejectFamilyTreePermission(string treeId, string currentPersonId, string userName);
|
||||
FamilyTreeData BindSelfPerson(string treeId, string personId);
|
||||
FamilyTreeData UnbindSelfPerson(string treeId);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user