mirror of
https://github.com/dotnetcore/Util.git
synced 2026-10-20 06:07:17 +08:00
32 lines
727 B
C#
32 lines
727 B
C#
using System;
|
|
using Util.Domain.Trees;
|
|
|
|
namespace Util.Domain.Tests.Samples;
|
|
|
|
/// <summary>
|
|
/// 角色
|
|
/// </summary>
|
|
public class Role : TreeEntityBase<Role, Guid, Guid?> {
|
|
/// <summary>
|
|
/// 初始化角色
|
|
/// </summary>
|
|
public Role()
|
|
: this( Guid.Empty, "", 0 ) {
|
|
}
|
|
|
|
/// <summary>
|
|
/// 初始化角色
|
|
/// </summary>
|
|
/// <param name="id">角色标识</param>
|
|
/// <param name="path">路径</param>
|
|
/// <param name="level">级数</param>
|
|
public Role( Guid id, string path, int level )
|
|
: base( id, path, level ) {
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 角色仓储
|
|
/// </summary>
|
|
public interface IRoleRepository : ITreeRepository<Role> {
|
|
} |