From c1fb5bb9746d429773b2f42e69d0b7456fcace67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=A2=93=E5=BD=AD?= Date: Thu, 23 Apr 2026 09:29:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E5=8F=82=E4=B8=8E?= =?UTF-8?q?=E5=8D=95=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YD_Event.Application/Event/Dtos/EventDtos.cs | 7 ++++++- YD_Event.Application/YD_Event.Application.xml | 7 ++++++- YD_Event.Core/Entities/EventUnit.cs | 8 +++++++- YD_Event.Core/YD_Event.Core.xml | 7 ++++++- 4 files changed, 25 insertions(+), 4 deletions(-) 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=赞助) + + + + + 自定义单位类型(当需要自定义时使用)