From 3624e6f24b7c7427b5d145dfd56cd26168e034e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=A2=93=E5=BD=AD?= Date: Wed, 15 Apr 2026 15:16:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=9B=E4=BA=8B=E6=88=90=E7=BB=A9=E6=80=A7?= =?UTF-8?q?=E5=88=AB=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YD_Event.Application/Event/Dtos/ScoreDtos.cs | 2 +- YD_Event.Application/Event/EventScoreService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/YD_Event.Application/Event/Dtos/ScoreDtos.cs b/YD_Event.Application/Event/Dtos/ScoreDtos.cs index 3ef0a68..faec0ea 100644 --- a/YD_Event.Application/Event/Dtos/ScoreDtos.cs +++ b/YD_Event.Application/Event/Dtos/ScoreDtos.cs @@ -83,7 +83,7 @@ public class ScoreListOutput /// /// 性别 /// - public string Gender { get; set; } + public int Gender { get; set; } /// /// 成绩ID diff --git a/YD_Event.Application/Event/EventScoreService.cs b/YD_Event.Application/Event/EventScoreService.cs index 2114bef..f3ed590 100644 --- a/YD_Event.Application/Event/EventScoreService.cs +++ b/YD_Event.Application/Event/EventScoreService.cs @@ -148,7 +148,7 @@ public class EventScoreService : BaseService, ITransient Id = p.Id, Name = p.Name, UnitName = r.TeamName, - Gender = p.Gender.ToString(), + Gender = (int)p.Gender, Score = res.Score, Rank = res.Rank, ResultId = res.Id,