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.
iot/projects/Application/Domain/Entities/Admin/OrganUser.cs

24 lines
890 B

using Infrastructure.Domain;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Application.Domain.Entities
{
[Display(Name = "机构用户", Order = 80)]
[Scope(ScopeAttribute.PlatformAll | ScopeAttribute.OrganAll | ScopeType.UserRead | ScopeType.UserDelete)]
[ManyToMany]
[AdminModule]
public class OrganUser : BaseEntity
{
public string Type { get; set; }
public Guid OrganId { get; set; }
public Guid UserId { get; set; }
public bool IsDefault { get; set; }
public bool IsReadOnly { get; set; }
public Organ Organ { get; set; }
public User User { get; set; }
public List<OrganUserRole> UserRoles { get; set; } = new List<OrganUserRole>();
public List<DepartmentUser> DepartmentUsers { get; set; } = new List<DepartmentUser>();
}
}