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 =>