35 lines
999 B
C#
35 lines
999 B
C#
|
|
using _0_Framework.Domain;
|
|
using AccountManagement.Domain.SubAccountPermissionSubtitle1Agg;
|
|
using AccountManagement.Domain.SubAccountPermissionSubtitle3Agg;
|
|
using System.Collections.Generic;
|
|
|
|
namespace AccountManagement.Domain.SubAccountPermissionSubtitle2Agg
|
|
{
|
|
public class SubAccountPermissionSubtitle2 : EntityBase
|
|
{
|
|
public string Title { get; private set; }
|
|
public int Code { get; private set; }
|
|
|
|
|
|
public SubAccountPermissionSubtitle1 Parent { get; private set; }
|
|
public long ParentId { get; private set; }
|
|
|
|
|
|
public List<SubAccountPermissionSubtitle3> Children { get; } = [];
|
|
|
|
public SubAccountPermissionSubtitle2(string title, int code, long parentId)
|
|
{
|
|
Title = title;
|
|
Code = code;
|
|
ParentId = parentId;
|
|
}
|
|
public void Edit(string title, int code, long parentId)
|
|
{
|
|
Title = title;
|
|
Code = code;
|
|
ParentId = parentId;
|
|
}
|
|
}
|
|
}
|