赛事详情

This commit is contained in:
马梓彭 2026-05-09 11:27:53 +08:00
parent 7ccd2e22e5
commit efe79745ce
2 changed files with 13 additions and 1 deletions

View File

@ -121,6 +121,11 @@ public class EventUnitDto
/// </summary>
public UnitType UnitType { get; set; }
/// <summary>
/// 自定义单位类型(当需要自定义时使用,优先显示此字段)
/// </summary>
public string? CustomUnitType { get; set; }
/// <summary>
/// 单位名称
/// </summary>
@ -130,6 +135,11 @@ public class EventUnitDto
/// Logo图片地址
/// </summary>
public string LogoUrl { get; set; }
/// <summary>
/// 排序
/// </summary>
public int Sort { get; set; }
}
/// <summary>

View File

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