Sube carpetas API, API.Tests, Application y Domain del Backend
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
|
||||
namespace Application.DTOs.Abstract.Response;
|
||||
|
||||
/// <summary>
|
||||
/// Base response class containing common properties for responses.
|
||||
/// </summary>
|
||||
public class BaseEntityResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// The unique identifier of the entity.
|
||||
/// </summary>
|
||||
public required Guid Id { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Application.DTOs.Abstract.Response;
|
||||
|
||||
/// <summary>
|
||||
/// A page of results together with the metadata needed to fetch adjacent pages.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of item contained in the page.</typeparam>
|
||||
public class PaginatedResponse<T>
|
||||
{
|
||||
/// <summary>
|
||||
/// The items in the collection.
|
||||
/// </summary>
|
||||
public IEnumerable<T> Items { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// The current page number.
|
||||
/// </summary>
|
||||
public required int Page { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The number of items in a page.
|
||||
/// </summary>
|
||||
public required int PageSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The total number of items in the collection.
|
||||
/// </summary>
|
||||
public required int TotalCount { get; set; }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user