first commit

This commit is contained in:
2026-06-02 20:48:16 +03:30
commit 8e92c983a2
233 changed files with 15744 additions and 0 deletions

View 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
}
}

View File

@@ -0,0 +1,7 @@
namespace Complex.Application.Common
{
public interface IBaseResponseDto
{
List<string> Action { set; get; }
}
}

View File

@@ -0,0 +1,26 @@
namespace Complex.Common.Dto
{
public class ResultDto
{
public bool IsSuccess { get; set; }
public string Message { get; set; }
}
public class ResultDto<T>
{
public ResultDto()
{
}
public ResultDto(T data,bool isSuccess=true)
{
Data = data;
IsSuccess = isSuccess;
}
public bool IsSuccess { get; set; }
public string Message { get; set; }
public T Data { get; set; }
public int RowCount { set; get; }
}
}