ly/Model/PositionInfo.cs

154 lines
3.8 KiB
C#

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