35 lines
1.2 KiB
C#
35 lines
1.2 KiB
C#
using GozareshgirProgramManager.Application._Common.Interfaces;
|
|
using GozareshgirProgramManager.Domain.ProjectAgg.Enums;
|
|
|
|
namespace GozareshgirProgramManager.Application.Modules.Projects.Queries.ProjectSetTimeDetails;
|
|
|
|
public record ProjectSetTimeDetailsQuery(Guid Id, ProjectHierarchyLevel Level)
|
|
: IBaseQuery<ProjectSetTimeResponse>;
|
|
public record ProjectSetTimeResponse(
|
|
List<ProjectSetTimeResponseSkill> SkillItems,
|
|
Guid Id,
|
|
ProjectHierarchyLevel Level);
|
|
|
|
public record ProjectSetTimeResponseSkill
|
|
{
|
|
public Guid SkillId { get; init; }
|
|
public string SkillName { get; init; }
|
|
public long UserId { get; set; }
|
|
public string UserFullName { get; init; }
|
|
public int InitialHours { get; set; }
|
|
public int InitialMinutes { get; set; }
|
|
public string InitialDescription { get; set; }
|
|
public string InitCreationTime { get; init; }
|
|
public List<ProjectSetTimeResponseSectionAdditionalTime> AdditionalTimes { get; init; }
|
|
public Guid SectionId { get; set; }
|
|
}
|
|
|
|
public class ProjectSetTimeResponseSectionAdditionalTime
|
|
{
|
|
public Guid Id { get; set; }
|
|
public int Hours { get; init; }
|
|
public int Minutes { get; init; }
|
|
public string Description { get; init; }
|
|
public string CreationDate { get; set; }
|
|
}
|