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,