using Infrastructure.Domain; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace IoT.Shared.Application.Domain.Entities { [Display(Name = "机构用户")] [Scope(ScopeAttribute.PlatformAll | ScopeAttribute.OrganAll | ScopeType.UserRead | ScopeType.UserDelete)] [Group("基础设置", "Admin")] public class OrganUser : BaseEntity { public OrganUserType Type { get; set; } public string CustomType { 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 UserRoles { get; set; } = new List(); public List DepartmentUsers { get; set; } = new List(); } }