ibms-dome/Backend/Models/BuildModel.cs

68 lines
2.4 KiB
C#
Raw Normal View History

2022-10-14 16:08:54 +08:00
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Backend.Models
{
public class BuildInfo : Actor
{
public int Priority { get; set; }
2022-10-20 17:25:47 +08:00
public string building_tag { get; set; }
2022-10-14 16:08:54 +08:00
public string Building_guid { get; set; } //區域GUID
public string Full_name { get; set; } //區域名稱
public string Ip_address { get; set; } //監控主機 IP
public string Ip_port { get; set; } //監控主機 IP port
public string Ip_address_port { get { return Ip_address + ":" + Ip_port; } }
public byte FloorNum { get; set; } //樓層數量
2022-10-24 17:53:33 +08:00
public IFormFile Map3dFile { get; set; }
public string orgName_3D { get; set; }
public string saveName_3D { get; set; }
public string extName_3D { get; set; }
2022-10-14 16:08:54 +08:00
//public string Created_at { get; set; } //建立時間
}
public class BuildFloor : Actor
{
public string Floor_guid { get; set; } //樓層GUID
public string Building_guid { get; set; } //區域GUID
2022-10-20 23:27:00 +08:00
public string Building_tag { get; set; } //區域GUID
2022-10-14 16:08:54 +08:00
public string Full_name { get; set; } //建築名稱
public string InitMapName { get; set; } //使用者命名平面圖檔檔名
public string MapUrl { get; set; } //使用者命名平面圖檔檔名
public string Floor_map_name { get; set; } //平面圖檔名
public IFormFile MapFile { get; set; } //平面圖檔
public int Priority { get; set; }
2022-10-24 17:53:33 +08:00
public string orgName_3D { get; set; }
public string saveName_3D { get; set; }
public string extName_3D { get; set; }
2022-10-14 16:08:54 +08:00
}
public class SelectedBuildFloor
{
public string SelectedGuid { get; set; } //區域GUID
}
public class PostBuildInfoPriority
{
public List<BuildInfoPriority> BuildInfoPriorities { get; set; }
}
public class BuildInfoPriority
{
public string Building_guid { get; set; } //區域GUID
2022-10-20 23:27:00 +08:00
public string Building_tag { get; set; } //區域TAG
2022-10-14 16:08:54 +08:00
public int Priority { get; set; }
}
public class PostFloorPriority
{
public List<FloorPriority> FloorPriorities { get; set; }
}
public class FloorPriority
{
public string Floor_guid { get; set; } //樓層GUID
public int Priority { get; set; }
}
}