DD.WellWorkover.Cloud/AsbCloudApp/Data/DepositDto.cs

40 lines
917 B
C#
Raw Permalink Normal View History

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
2024-08-19 10:01:07 +05:00
namespace AsbCloudApp.Data;
#nullable enable
2024-08-19 10:01:07 +05:00
/// <summary>
/// DTO Месторождения
/// </summary>
public class DepositBaseDto : MapPointBaseDto
{
}
2022-06-01 17:52:26 +05:00
2024-08-19 10:01:07 +05:00
/// <summary>
/// DTO Месторождения с кустами
/// </summary>
public class DepositDto : MapPointBaseDto
{
2023-02-07 16:20:36 +05:00
/// <summary>
2024-08-19 10:01:07 +05:00
/// Кусты месторождения
2023-02-07 16:20:36 +05:00
/// </summary>
2024-08-19 10:01:07 +05:00
[Required]
public IEnumerable<ClusterDto> Clusters { get; set; } = Enumerable.Empty<ClusterDto>();
}
2024-08-19 10:01:07 +05:00
/// <summary>
/// DTO Месторождения с кустами
/// </summary>
public class DepositBranchDto : MapPointBaseDto
{
2022-06-01 17:52:26 +05:00
/// <summary>
2024-08-19 10:01:07 +05:00
/// Кусты месторождения
2022-06-01 17:52:26 +05:00
/// </summary>
2024-08-19 10:01:07 +05:00
[Required]
public IEnumerable<ClusterBranchDto> Clusters { get; set; } = Enumerable.Empty<ClusterBranchDto>();
}