using Infrastructure.Domain; using System; using System.ComponentModel.DataAnnotations; namespace IoT.Shared.Application.Domain.Entities { [Display(Name = "部门用户")] [Scope(ScopeAttribute.PlatformAll | ScopeAttribute.OrganAll | ScopeType.UserRead | ScopeType.UserEdit)] public class DepartmentUser : BaseEntity { public string Position { get; set; } public DepartmentUserType Type { get; set; } public string CustomType { get; set; } public Guid UserId { get; set; } public Guid DeparementId { get; set; } public Guid? JobId { get; set; } public User User { get; set; } public Department Department { get; set; } public Job Job { get; set; } } }