Add project files.

This commit is contained in:
KhasanovAM
2026-01-18 00:30:29 +04:00
parent 9c5a7ce993
commit 61a598aceb
27 changed files with 1974 additions and 0 deletions

26
DTOs/ApiResponse.cs Normal file
View File

@@ -0,0 +1,26 @@
namespace LogisticsApp.Server.DTOs
{
public class ApiResponse<T>
{
public bool Success { get; set; }
public string Message { get; set; } = string.Empty;
public T? Data { get; set; }
public ApiResponse(bool success, string message, T? data = default)
{
Success = success;
Message = message;
Data = data;
}
}
public class PagedResult<T>
{
public List<T> Items { get; set; } = new();
public int TotalCount { get; set; }
public int Page { get; set; }
public int PageSize { get; set; }
public int TotalPages { get; set; }
}
}

8
DTOs/LoginRequest.cs Normal file
View File

@@ -0,0 +1,8 @@
namespace LogisticsApp.Server.DTOs
{
public class LoginRequest
{
public string Username { get; set; } = string.Empty;
public string Password { get; set; } = string.Empty;
}
}

10
DTOs/LoginResponse.cs Normal file
View File

@@ -0,0 +1,10 @@
namespace LogisticsApp.Server.DTOs
{
public class LoginResponse
{
public string Token { get; set; } = string.Empty;
public string Username { get; set; } = string.Empty;
public string Role { get; set; } = string.Empty;
public DateTime Expires { get; set; }
}
}

13
DTOs/OrderFilters.cs Normal file
View File

@@ -0,0 +1,13 @@
namespace LogisticsApp.Server.DTOs
{
public class OrderFilters
{
public string? ClientName { get; set; }
public decimal? MinCost { get; set; }
public decimal? MaxCost { get; set; }
public DateTime? OrderDate { get; set; }
public string? Status { get; set; }
public int Page { get; set; } = 1;
public int PageSize { get; set; } = 50;
}
}

11
DTOs/VehicleFilters.cs Normal file
View File

@@ -0,0 +1,11 @@
namespace LogisticsApp.Server.DTOs
{
public class VehicleFilters
{
public string? DriverName { get; set; }
public string? VehicleType { get; set; }
public string? LicensePlate { get; set; }
public int Page { get; set; } = 1;
public int PageSize { get; set; } = 50;
}
}