You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
850 B
41 lines
850 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Text;
|
|
using Volo.Abp;
|
|
using Volo.Abp.Domain.Entities;
|
|
using Volo.Abp.Domain.Entities.Auditing;
|
|
using Volo.Abp.Domain.Values;
|
|
using Volo.Abp.Identity;
|
|
using Volo.Abp.MultiTenancy;
|
|
|
|
namespace BaseService.BaseData
|
|
{
|
|
/// <summary>
|
|
/// 用户--分支--角色(多对多表)
|
|
/// </summary>
|
|
public class UserBranchRole : ValueObject
|
|
{
|
|
/// <summary>
|
|
/// 角色ID
|
|
/// </summary>
|
|
public Guid RoleId { get; set; }
|
|
|
|
|
|
|
|
public UserBranchRole()
|
|
{
|
|
|
|
}
|
|
|
|
public UserBranchRole(Guid roleId)
|
|
{
|
|
RoleId = roleId;
|
|
}
|
|
|
|
protected override IEnumerable<object> GetAtomicValues()
|
|
{
|
|
yield return RoleId;
|
|
}
|
|
}
|
|
}
|
|
|