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.
28 lines
1.1 KiB
28 lines
1.1 KiB
using Infrastructure.Domain;
|
|
using Infrastructure.Web.Mvc;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace IoT.Shared.Application.Domain.Entities
|
|
{
|
|
[GeneratedController]
|
|
[Display(Name = "机构")]
|
|
[Scope(ScopeAttribute.PlatformAll | ScopeType.OrganRead | ScopeType.OrganEdit)]
|
|
public class Organ : BaseTreeEntity<Organ>
|
|
{
|
|
public OrganType Type { get; set; }
|
|
public string CustomType { get; set; }
|
|
public string Image { get; set; }
|
|
public string Description { get; set; }
|
|
public Guid? AreaId { get; set; }
|
|
public Area Area { get; set; }
|
|
public List<Building> Buildings { get; set; } = new List<Building>();
|
|
public List<OrganUser> OrganUsers { get; set; } = new List<OrganUser>();
|
|
public List<OrganIoTScene> OrganScenes { get; set; } = new List<OrganIoTScene>();
|
|
public List<Role> Roles { get; set; } = new List<Role>();
|
|
public List<PermissionCategory> Categories { get; set; } = new List<PermissionCategory>();
|
|
public List<Title> Titles { get; set; } = new List<Title>();
|
|
}
|
|
}
|