From 77996f25f20d5b05ddcf4e6513230bbcc44d8f3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=A2=93=E5=BD=AD?= Date: Wed, 13 May 2026 17:53:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=9B=E4=BA=8B=E8=AF=A6=E6=83=85=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E8=B5=9B=E4=BA=8B=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YD_Event.Application/Event/Dtos/UserCompetitionDtos.cs | 5 +++++ YD_Event.Application/Event/UserEventRegistrationService.cs | 3 +++ 2 files changed, 8 insertions(+) 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;