using SqlSugar;
namespace LY.App.Model
{
///
/// 位置信息
///
[SugarTable("ly_position")]
public class PositionInfo: MultPolygonEntity
{
///
/// 名称
///
[SugarColumn(Length = 63, IsNullable = true, ColumnDescription = "名称")]
public string Name { get; set; }
///
/// 地址
///
[SugarColumn(IsNullable = true, ColumnDescription = "地址")]
public string Address { get; set; }
///
/// 联系人
///
[SugarColumn(Length = 63, IsNullable = true, ColumnDescription = "联系人")]
public string ContactName { get; set; }
///
/// 联系人电话
///
[SugarColumn(Length = 31, IsNullable = true, ColumnDescription = "联系人电话")]
public string ContactTel { get; set; }
///
/// 图片文件名
///
[SugarColumn(IsNullable = true, ColumnDescription = "图片地址")]
public string ImageName { get; set; }
///
/// 图片地址
///
[SugarColumn(IsIgnore = true)]
public string ImageUrl { get; set; }
///
/// 图片缩略图地址
///
[SugarColumn(IsIgnore = true)]
public string ImageBriefUrl { get; set; }
///
/// 启用时间
///
[SugarColumn(IsNullable = true, ColumnDescription = "启用时间")]
public DateTime? EnableTime { get; set; }
///
/// 是否启用
///
[SugarColumn(ColumnDescription = "是否启用")]
public bool Enabled { get; set; }
///
/// 状态
///
[SugarColumn(IsNullable = true, ColumnDescription = "状态")]
public string Status { get; set; } = "离线";
///
/// 备注
///
[SugarColumn(IsNullable = true, ColumnDescription = "备注")]
public string Remarks { get; set; }
}
///
/// 添加
///
public class AddPosition
{
///
/// 名称
///
public string Name { get; set; }
///
/// 空间数据geojson
///
public string RegionJson { get; set; }
///
/// 经度
///
public double Lon { get; set; }
///
/// 纬度
///
public double Lat { get; set; }
///
/// 地址
///
public string Address { get; set; }
///
/// 联系人
///
public string ContactName { get; set; }
///
/// 联系人电话
///
public string ContactTel { get; set; }
///
/// 图片文件名
///
public string ImageName { get; set; }
///
/// 启用时间
///
public DateTime? EnableTime { get; set; }
///
/// 是否启用
///
public bool Enabled { get; set; }
///
/// 状态
///
public string Status { get; set; } = "离线";
///
/// 备注
///
public string Remarks { get; set; }
}
///
/// 更新
///
public class UpdatePosition : AddPosition
{
///
/// 主键id
///
public long Id { get; set; }
}
///
/// 阵地下所有区域
///
public class GeoRegion
{
///
/// 识别区
///
public string Region { get; set; }
}
}