Sube carpetas API, API.Tests, Application y Domain del Backend

This commit is contained in:
FrancoRu
2026-09-18 13:35:59 -03:00
parent bbb09554bb
commit 2eb4eeef03
572 changed files with 56405 additions and 0 deletions
@@ -0,0 +1,40 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace Application.DTOs.MedicalRecord.Request;
/// <summary>
/// Owner or admin request to approve or reject a player's medical record for a team and tournament.
/// </summary>
public class ReviewMedicalRecordRequest
{
/// <summary>
/// The player whose medical record is being reviewed.
/// </summary>
[Required]
public required Guid PlayerId { get; set; }
/// <summary>
/// The team the player is registered to for the season.
/// </summary>
[Required]
public required Guid TeamId { get; set; }
/// <summary>
/// The tournament the record applies to.
/// </summary>
[Required]
public required Guid TournamentId { get; set; }
/// <summary>
/// True to approve and make the player habilitado; false to reject.
/// </summary>
[Required]
public required bool Approve { get; set; }
/// <summary>
/// Optional reason, typically recorded when rejecting.
/// </summary>
[MaxLength(500)]
public string? Reason { get; set; }
}
@@ -0,0 +1,36 @@
using Microsoft.AspNetCore.Http;
using System;
using System.ComponentModel.DataAnnotations;
namespace Application.DTOs.MedicalRecord.Request;
/// <summary>
/// Multipart request to upload a player's medical-record PDF for a specific team and tournament.
/// </summary>
public class UploadMedicalRecordRequest
{
/// <summary>
/// The player the medical record belongs to.
/// </summary>
[Required]
public required Guid PlayerId { get; set; }
/// <summary>
/// The team the player is registered to for the season.
/// </summary>
[Required]
public required Guid TeamId { get; set; }
/// <summary>
/// The tournament the record applies to.
/// </summary>
[Required]
public required Guid TournamentId { get; set; }
/// <summary>
/// The medical-record PDF to upload.
/// </summary>
[Required]
public required IFormFile File { get; set; }
}