46 lines
1.1 KiB
C#
46 lines
1.1 KiB
C#
using Domain.Admin.Admin.ENum;
|
|
using MongoDB.Bson;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
using MongoRepository;
|
|
using MongoRepository.Attributes;
|
|
using MongoRepository.Config;
|
|
|
|
namespace Domain.Admin.Admin
|
|
{
|
|
[BsonCollection("system_user_nav", ServiceDatabases.Admin)]
|
|
[BsonIgnoreExtraElements]
|
|
public class SystemNavigation :MongoBaseEntity
|
|
{
|
|
|
|
[BsonElement("parentId")]
|
|
public string ParentId { set; get; } = "";
|
|
|
|
[BsonElement("name")]
|
|
public string? Name { get; set; }
|
|
|
|
[BsonElement("order")]
|
|
public int Order { get; set; }
|
|
|
|
[BsonElement("icon")]
|
|
public string? Icon { get; set; }
|
|
|
|
[BsonElement("url")]
|
|
public string? Url { get; set; }
|
|
|
|
[BsonElement("category")]
|
|
public EnumNavigationCategory Category { get; set; }
|
|
|
|
[BsonElement("target")]
|
|
public string? Target { get; set; }
|
|
|
|
[BsonElement("isresource")]
|
|
public EnumResource IsResource { get; set; }
|
|
public void Init()
|
|
{
|
|
Id = ObjectId.GenerateNewId().ToString();
|
|
}
|
|
}
|
|
|
|
|
|
}
|