ly/Model/PositionInfo.cs

100 lines
2.7 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 = "图片地址", ColumnName = "img")]
public string Img { get; set; }
/// <summary>
/// 备注
/// </summary>
[SugarColumn(IsNullable = true, ColumnDescription = "备注")]
public string Remarks { get; set; }
[SugarColumn(IsNullable = true, ColumnDescription = "中心点")]
public double lat { get; set; }
[SugarColumn(IsNullable = true, ColumnDescription = "中心点")]
public double lon { 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 string Address { get; set; }
/// <summary>
/// 联系人
/// </summary>
public string ContactName { get; set; }
/// <summary>
/// 联系人电话
/// </summary>
public string ContactTel { get; set; }
/// <summary>
/// 图片
/// </summary>
public string Img { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remarks { get; set; }
public double lat { get; set; }
public double lon { get; set; }
}
/// <summary>
/// 更新
/// </summary>
public class UpdatePosition : AddPosition
{
/// <summary>
/// 主键id
/// </summary>
public long Id { get; set; }
}
}