添加项目文件。
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
using MongoDB.Bson;
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
using MongoRepository;
|
||||
using MongoRepository.Attributes;
|
||||
using MongoRepository.Config;
|
||||
|
||||
namespace Domain.Admin.Admin
|
||||
{
|
||||
[BsonCollection("system_user_role", ServiceDatabases.Admin)]
|
||||
[BsonIgnoreExtraElements]
|
||||
public class SystemUserRole:MongoBaseEntity
|
||||
{
|
||||
[BsonElement("rolename")]
|
||||
public string? RoleName { get; set; }
|
||||
|
||||
[BsonElement("description")]
|
||||
public string? Description { get; set; }
|
||||
|
||||
|
||||
[BsonElement("navIds")]
|
||||
public List<string> NavIds { get; set; } = new List<string>();
|
||||
|
||||
public void Init()
|
||||
{
|
||||
Id = ObjectId.GenerateNewId().ToString();
|
||||
NavIds = new List<string>();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user