Sube carpetas API, API.Tests, Application y Domain del Backend
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using Domain.Enums;
|
||||
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Application.DTOs.TeamStaff.Request;
|
||||
|
||||
/// <summary>
|
||||
/// Request to add a member to a team's technical staff; the team is taken from the route.
|
||||
/// </summary>
|
||||
public class CreateTeamStaffRequest
|
||||
{
|
||||
[Required(ErrorMessage = "The FullName field is required.")]
|
||||
[MaxLength(150, ErrorMessage = "FullName cannot exceed 150 characters.")]
|
||||
public required string FullName { get; set; }
|
||||
|
||||
public required TeamStaffRole Role { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The tournament this staff membership belongs to.
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "The TournamentId field is required.")]
|
||||
public required Guid TournamentId { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
|
||||
namespace Application.DTOs.TeamStaff.Response;
|
||||
|
||||
/// <summary>
|
||||
/// A team's technical staff member record, as returned by the create and list endpoints.
|
||||
/// </summary>
|
||||
public class TeamStaffResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// The unique identifier of the staff member.
|
||||
/// </summary>
|
||||
public Guid Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The id of the team this staff member belongs to.
|
||||
/// </summary>
|
||||
public Guid TeamId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The team's name, when the team was loaded.
|
||||
/// </summary>
|
||||
public string? TeamName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The tournament this staff membership belongs to.
|
||||
/// </summary>
|
||||
public Guid TournamentId { get; set; }
|
||||
|
||||
public string FullName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// The role this person holds on the team's technical staff.
|
||||
/// </summary>
|
||||
public required string Role { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// When the staff member was added.
|
||||
/// </summary>
|
||||
public DateTime DateCreated { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user