26 lines
769 B
C#
26 lines
769 B
C#
using MongoDB.Bson;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
|
|
namespace Marco.Pms.Model.AppMenu
|
|
{
|
|
public class WebSideMenuItem
|
|
{
|
|
[BsonId]
|
|
[BsonRepresentation(BsonType.String)]
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
|
|
[BsonRepresentation(BsonType.String)]
|
|
public Guid? ParentMenuId { get; set; }
|
|
public string? Name { get; set; }
|
|
public string? Icon { get; set; }
|
|
public bool Available { get; set; } = true;
|
|
public string Link { get; set; } = string.Empty;
|
|
|
|
[BsonRepresentation(BsonType.String)]
|
|
public List<Guid> PermissionIds { get; set; } = new List<Guid>();
|
|
|
|
[BsonRepresentation(BsonType.String)]
|
|
public Guid TenantId { get; set; }
|
|
}
|
|
}
|