diff --git a/YD_Event.Application/Event/Dtos/EventDtos.cs b/YD_Event.Application/Event/Dtos/EventDtos.cs index bd536b1..13024a9 100644 --- a/YD_Event.Application/Event/Dtos/EventDtos.cs +++ b/YD_Event.Application/Event/Dtos/EventDtos.cs @@ -158,10 +158,15 @@ public class EventListOutput public class EventUnitDto { /// - /// 单位类型 + /// 单位类型(枚举:0=主办,1=承办,2=协办,3=赞助) /// public UnitType UnitType { get; set; } + /// + /// 自定义单位类型(当需要自定义时使用,优先显示此字段) + /// + public string? CustomUnitType { get; set; } + /// /// 单位名称 /// diff --git a/YD_Event.Application/YD_Event.Application.xml b/YD_Event.Application/YD_Event.Application.xml index 6fcee31..5ccf366 100644 --- a/YD_Event.Application/YD_Event.Application.xml +++ b/YD_Event.Application/YD_Event.Application.xml @@ -4437,7 +4437,12 @@ - 单位类型 + 单位类型(枚举:0=主办,1=承办,2=协办,3=赞助) + + + + + 自定义单位类型(当需要自定义时使用,优先显示此字段) diff --git a/YD_Event.Core/Entities/EventUnit.cs b/YD_Event.Core/Entities/EventUnit.cs index 67322d8..1b95a62 100644 --- a/YD_Event.Core/Entities/EventUnit.cs +++ b/YD_Event.Core/Entities/EventUnit.cs @@ -15,10 +15,16 @@ public class EventUnit : Entity, ISoftDelete, ICreatedUserId, ICreatedTime public long EventId { get; set; } /// - /// 单位类型 + /// 单位类型(枚举:0=主办,1=承办,2=协办,3=赞助) /// public UnitType UnitType { get; set; } + /// + /// 自定义单位类型(当需要自定义时使用) + /// + [SugarColumn(Length = 128, IsNullable = true)] + public string? CustomUnitType { get; set; } + /// /// 单位名称 /// diff --git a/YD_Event.Core/YD_Event.Core.xml b/YD_Event.Core/YD_Event.Core.xml index 9a7a4c1..bfbbda3 100644 --- a/YD_Event.Core/YD_Event.Core.xml +++ b/YD_Event.Core/YD_Event.Core.xml @@ -2409,7 +2409,12 @@ - 单位类型 + 单位类型(枚举:0=主办,1=承办,2=协办,3=赞助) + + + + + 自定义单位类型(当需要自定义时使用)