diff --git a/YD_Event.Application/Event/Dtos/UserCompetitionDtos.cs b/YD_Event.Application/Event/Dtos/UserCompetitionDtos.cs index 6c5dff8..67167ba 100644 --- a/YD_Event.Application/Event/Dtos/UserCompetitionDtos.cs +++ b/YD_Event.Application/Event/Dtos/UserCompetitionDtos.cs @@ -132,6 +132,11 @@ public class UserEventDetailOutput /// 赛事状态 /// public string Status { get; set; } + + /// + /// 赛事状态枚举 + /// + public YD_Event.Core.Enum.EventStatus EventStatus { get; set; } /// /// 赛事类型 (int: 0-线上, 1-线下) diff --git a/YD_Event.Application/Event/UserEventRegistrationService.cs b/YD_Event.Application/Event/UserEventRegistrationService.cs index 59b29fb..8e1d6cd 100644 --- a/YD_Event.Application/Event/UserEventRegistrationService.cs +++ b/YD_Event.Application/Event/UserEventRegistrationService.cs @@ -220,6 +220,9 @@ public class UserEventRegistrationService : IDynamicApiController, ITransient output.Type = (int)eventInfo.EventType; output.RegistrationType = (int)eventInfo.RegistrationType; + // 设置赛事状态 + output.EventStatus = eventInfo.EventStatus; + output.IsNeedMaterial = eventInfo.IsNeedMaterial; output.MaterialRemark = eventInfo.MaterialRemark; output.MaterialUploadEndTime = eventInfo.MaterialUploadEndTime;