hrms-api-recruit/Requests/Recruits/CompetitivePeriodRequest.cs

23 lines
908 B
C#
Raw Normal View History

2025-11-07 08:54:51 +07:00
using System.ComponentModel.DataAnnotations;
2026-05-12 16:32:46 +07:00
namespace BMA.EHR.Recruit.Requests.Recruits
2025-11-07 08:54:51 +07:00
{
public class CompetitivePeriodRequest
{
/// <summary>
/// วันที่เริ่มต้นของช่วงที่ต้องการกรอง
/// </summary>
public DateTime? StartDate { get; set; }
/// <summary>
/// วันที่สิ้นสุดของช่วงที่ต้องการกรอง
/// </summary>
public DateTime? EndDate { get; set; }
/// <summary>
/// จำนวนรายการสูงสุดที่ต้องการ (0 = ไม่จำกัด)
/// </summary>
[Range(0, int.MaxValue, ErrorMessage = "Limit ต้องมากกว่าหรือเท่ากับ 0")]
public int Limit { get; set; } = 0;
}
}