106 lines
2.7 KiB
C#
106 lines
2.7 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using YD_Event.Core.Enum;
|
|
using MiniExcelLibs.Attributes;
|
|
|
|
namespace YD_Event.Application.Event.Dtos;
|
|
|
|
public class ScoreQueryInput : Pagination
|
|
{
|
|
public long EventId { get; set; }
|
|
public long? ProjectId { get; set; }
|
|
public string? GroupName { get; set; }
|
|
public string? Name { get; set; }
|
|
public string? UnitName { get; set; }
|
|
}
|
|
|
|
public class ScoreListOutput
|
|
{
|
|
public long Id { get; set; } // RegistrationPersonId
|
|
public string Name { get; set; }
|
|
public string Score { get; set; }
|
|
public string UnitName { get; set; }
|
|
public int Rank { get; set; }
|
|
public string Gender { get; set; }
|
|
public long ResultId { get; set; }
|
|
public long CertificateId { get; set; }
|
|
}
|
|
|
|
public class CoachLeaderQueryInput : Pagination
|
|
{
|
|
public long EventId { get; set; }
|
|
public int PersonType { get; set; } // 2-Coach, 3-Leader
|
|
public string? Name { get; set; }
|
|
public string? Phone { get; set; }
|
|
}
|
|
|
|
public class CoachLeaderListOutput
|
|
{
|
|
public long Id { get; set; } // RegistrationPersonId
|
|
public string Name { get; set; }
|
|
public int Age { get; set; }
|
|
public string Gender { get; set; }
|
|
public string IdCard { get; set; }
|
|
public string Phone { get; set; }
|
|
public long CertificateId { get; set; }
|
|
}
|
|
|
|
public class IssueCertificateInput
|
|
{
|
|
public List<long> PersonIds { get; set; }
|
|
public long EventId { get; set; }
|
|
}
|
|
|
|
public class ScoreImportDto
|
|
{
|
|
[ExcelColumnName("项目")]
|
|
public string ProjectName { get; set; }
|
|
|
|
[ExcelColumnName("组别")]
|
|
public string GroupName { get; set; }
|
|
|
|
[ExcelColumnName("姓名")]
|
|
public string Name { get; set; }
|
|
|
|
[ExcelColumnName("单位")]
|
|
public string UnitName { get; set; }
|
|
|
|
[ExcelColumnName("成绩")]
|
|
public string Score { get; set; }
|
|
|
|
[ExcelColumnName("名次")]
|
|
public int Rank { get; set; }
|
|
|
|
[ExcelColumnName("名次(文字)")]
|
|
public string RankText { get; set; }
|
|
}
|
|
|
|
public class CertificateExportDto
|
|
{
|
|
[ExcelColumnName("证书编号")]
|
|
public string CertificateNo { get; set; }
|
|
|
|
[ExcelColumnName("姓名")]
|
|
public string ParticipantName { get; set; }
|
|
|
|
[ExcelColumnName("项目")]
|
|
public string ProjectName { get; set; }
|
|
|
|
[ExcelColumnName("组别")]
|
|
public string GroupName { get; set; }
|
|
|
|
[ExcelColumnName("单位")]
|
|
public string UnitName { get; set; }
|
|
|
|
[ExcelColumnName("成绩")]
|
|
public string Score { get; set; }
|
|
|
|
[ExcelColumnName("名次")]
|
|
public int Rank { get; set; }
|
|
|
|
[ExcelColumnName("证书类型")]
|
|
public string CertificateType { get; set; }
|
|
|
|
[ExcelColumnName("发放时间")]
|
|
public DateTime? IssuedTime { get; set; }
|
|
}
|