添加项目文件。
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user