first commit
This commit is contained in:
22
Complex.Application/Other/Common/Dto/CommonRequestDto.cs
Normal file
22
Complex.Application/Other/Common/Dto/CommonRequestDto.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
namespace Complex.Application.Common
|
||||
{
|
||||
public class CommonRequestDto
|
||||
{
|
||||
/// <summary>
|
||||
/// فیلد ترتیب
|
||||
/// </summary>
|
||||
public string? SortField { set; get; }
|
||||
/// <summary>
|
||||
/// نحوه ترتیب
|
||||
/// </summary>
|
||||
public SortDirection? sortDirection { set; get; } = SortDirection.asc;
|
||||
|
||||
public int Page { set; get; } = 0;
|
||||
public int Length { set; get; } = 10;
|
||||
}
|
||||
public enum SortDirection
|
||||
{
|
||||
asc,
|
||||
desc
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user