add api post
This commit is contained in:
parent
11a683bf9b
commit
ab57fee8b4
2 changed files with 112 additions and 25 deletions
23
Requests/Recruits/CompetitivePeriodRequest.cs
Normal file
23
Requests/Recruits/CompetitivePeriodRequest.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.Recruit.Service.Requests.Recruits
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue