From efe79745ce66d5470345e92bf6a27012345365a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=A2=93=E5=BD=AD?= Date: Sat, 9 May 2026 11:27:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=9B=E4=BA=8B=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YD_Event.Application/Client/Dtos/EventClientDtos.cs | 10 ++++++++++ YD_Event.Application/Client/EventClientController.cs | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/YD_Event.Application/Client/Dtos/EventClientDtos.cs b/YD_Event.Application/Client/Dtos/EventClientDtos.cs index d639ac8..df7a4d4 100644 --- a/YD_Event.Application/Client/Dtos/EventClientDtos.cs +++ b/YD_Event.Application/Client/Dtos/EventClientDtos.cs @@ -121,6 +121,11 @@ public class EventUnitDto /// public UnitType UnitType { get; set; } + /// + /// 自定义单位类型(当需要自定义时使用,优先显示此字段) + /// + public string? CustomUnitType { get; set; } + /// /// 单位名称 /// @@ -130,6 +135,11 @@ public class EventUnitDto /// Logo图片地址 /// public string LogoUrl { get; set; } + + /// + /// 排序 + /// + public int Sort { get; set; } } /// diff --git a/YD_Event.Application/Client/EventClientController.cs b/YD_Event.Application/Client/EventClientController.cs index ec87e20..36626ad 100644 --- a/YD_Event.Application/Client/EventClientController.cs +++ b/YD_Event.Application/Client/EventClientController.cs @@ -482,8 +482,10 @@ public class EventClientController : IDynamicApiController Units = units.Select(u => new YD_Event.Application.Client.Dtos.EventUnitDto { UnitType = u.UnitType, + CustomUnitType = u.CustomUnitType, UnitName = u.UnitName, - LogoUrl = u.LogoUrl + LogoUrl = u.LogoUrl, + Sort = u.Sort }).ToList(), Projects = eventProjects.Select(ep =>