feat 点位图
This commit is contained in:
38
Src/Dlhis.Basic/Map/Request/SavePointMapDetailRequest.cs
Normal file
38
Src/Dlhis.Basic/Map/Request/SavePointMapDetailRequest.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using Dlhis.Entity.Basic.Enums;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Dlhis.Basic.Map.Request;
|
||||
|
||||
public class SavePointMapDetailRequest
|
||||
{
|
||||
public long? Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 点位图code
|
||||
/// </summary>
|
||||
[Required]
|
||||
public Guid PointMapCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据code 如果是设备那么为设备code
|
||||
/// </summary>
|
||||
[Required]
|
||||
public Guid UniqueCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据类型 PointMapDetailEnumType
|
||||
/// </summary>
|
||||
[EnumDataType(typeof(PointMapDetailEnumType))]
|
||||
public PointMapDetailEnumType Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// XYZ
|
||||
/// </summary>
|
||||
[Required]
|
||||
public string Position { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Remark { get; set; }
|
||||
}
|
||||
22
Src/Dlhis.Basic/Map/Request/SavePointMapRequest.cs
Normal file
22
Src/Dlhis.Basic/Map/Request/SavePointMapRequest.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Dlhis.Basic.Map.Request;
|
||||
|
||||
public class SavePointMapRequest
|
||||
{
|
||||
public long? Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 位置名称
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "位置名称不可为空")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "图片不可为空")]
|
||||
public string ImageUrl { get; set; }
|
||||
|
||||
public string Remark { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user