31 lines
768 B
C#
31 lines
768 B
C#
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>();
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|