From 463f830eec5e2cfb9c881538f077325f1c2e7957 Mon Sep 17 00:00:00 2001 From: hardstylewyl <827778732@qq.com> Date: Tue, 24 Jun 2025 09:14:30 +0800 Subject: [PATCH] =?UTF-8?q?add-param:=E5=A2=9E=E5=8A=A0=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E6=9F=A5=E8=AF=A2=E7=9A=84=E5=8F=82=E6=95=B0?= =?UTF-8?q?=EF=BC=8C=E5=8C=85=E5=90=AB=E8=BD=A8=E8=BF=B9=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E7=9A=84=E9=85=8D=E7=BD=AE=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TrackTemplateContentDto.cs | 32 ++++++++++++++++++- .../TrackTemplate/TrackTemplateOutputVo.cs | 32 ++++++++++++++++++- .../Repositories/TrackTemplateRepository.cs | 8 ++++- 3 files changed, 69 insertions(+), 3 deletions(-) diff --git a/src/SJZY.Track.Application.Contract/Dtos/ProvideServices/TrackTemplateContentDto.cs b/src/SJZY.Track.Application.Contract/Dtos/ProvideServices/TrackTemplateContentDto.cs index ffabeb90..f05164ef 100644 --- a/src/SJZY.Track.Application.Contract/Dtos/ProvideServices/TrackTemplateContentDto.cs +++ b/src/SJZY.Track.Application.Contract/Dtos/ProvideServices/TrackTemplateContentDto.cs @@ -46,7 +46,37 @@ public class TemplateContentDto public string Node { get; set; } /// - /// 排序键 + /// 排序键和模板顺序一致 /// public int Sort { get; set; } + + /// + /// 是否对外 + /// + public bool IsExternal { get; set; } + + /// + /// 是否可重复 + /// + public bool IsRepeatable { get; set; } + + /// + /// 是否允许手动创建 + /// + public bool IsAllowManuallyCreate { get; set; } + + /// + /// 是否允许手动修改 + /// + public bool IsAllowManuallyUpdate { get; set; } + + /// + /// 是否广播 + /// + public bool IsToMq { get; set; } + + /// + /// 是否完成态 + /// + public bool IsCompleted { get; set; } } diff --git a/src/SJZY.Track.Domain/Dtos/TrackTemplate/TrackTemplateOutputVo.cs b/src/SJZY.Track.Domain/Dtos/TrackTemplate/TrackTemplateOutputVo.cs index 9996c9b7..0483afa8 100644 --- a/src/SJZY.Track.Domain/Dtos/TrackTemplate/TrackTemplateOutputVo.cs +++ b/src/SJZY.Track.Domain/Dtos/TrackTemplate/TrackTemplateOutputVo.cs @@ -56,7 +56,37 @@ public class TemplateContentDtoVo public string Node { get; set; } /// - /// 排序键 + /// 排序键和模板顺序一致 /// public int Sort { get; set; } + + /// + /// 是否对外 + /// + public bool IsExternal { get; set; } + + /// + /// 是否可重复 + /// + public bool IsRepeatable { get; set; } + + /// + /// 是否允许手动创建 + /// + public bool IsAllowManuallyCreate { get; set; } + + /// + /// 是否允许手动修改 + /// + public bool IsAllowManuallyUpdate { get; set; } + + /// + /// 是否广播 + /// + public bool IsToMq { get; set; } + + /// + /// 是否完成态 + /// + public bool IsCompleted { get; set; } } diff --git a/src/SJZY.Track.Repository/Repositories/TrackTemplateRepository.cs b/src/SJZY.Track.Repository/Repositories/TrackTemplateRepository.cs index 2f9b4a2d..6ec8434b 100644 --- a/src/SJZY.Track.Repository/Repositories/TrackTemplateRepository.cs +++ b/src/SJZY.Track.Repository/Repositories/TrackTemplateRepository.cs @@ -265,7 +265,13 @@ public class TrackTemplateRepository : BasicRepository, ITr ContentEn = b.EnContent, Status = c.Status, Node = d.NodeName, - Sort = a.Sort + Sort = a.Sort, + IsExternal = b.IsExternal, + IsRepeatable = b.IsRepeatable, + IsAllowManuallyCreate = b.IsAllowManuallyCreate, + IsAllowManuallyUpdate = b.IsAllowManuallyUpdate, + IsToMq = c.IsToMq, + IsCompleted = c.IsCompleted }) .ToPagedListAsync(input.PageIndex, input.PageSize);