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 1/2] =?UTF-8?q?add-param:=E5=A2=9E=E5=8A=A0=E6=A8=A1?=
=?UTF-8?q?=E6=9D=BF=E5=86=85=E5=AE=B9=E6=9F=A5=E8=AF=A2=E7=9A=84=E5=8F=82?=
=?UTF-8?q?=E6=95=B0=EF=BC=8C=E5=8C=85=E5=90=AB=E8=BD=A8=E8=BF=B9=E5=86=85?=
=?UTF-8?q?=E5=AE=B9=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);
From 54175b1e5ff05f1eaa7869a7899919617c7eee24 Mon Sep 17 00:00:00 2001
From: hardstylewyl <827778732@qq.com>
Date: Tue, 24 Jun 2025 09:14:40 +0800
Subject: [PATCH 2/2] update-package:7.0.22->7.0.23
---
.../SJZY.Track.Application.Contract.csproj | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/SJZY.Track.Application.Contract/SJZY.Track.Application.Contract.csproj b/src/SJZY.Track.Application.Contract/SJZY.Track.Application.Contract.csproj
index 23c2141f..57603afe 100644
--- a/src/SJZY.Track.Application.Contract/SJZY.Track.Application.Contract.csproj
+++ b/src/SJZY.Track.Application.Contract/SJZY.Track.Application.Contract.csproj
@@ -5,7 +5,7 @@
net7.0
True
- 7.0.22
+ 7.0.23
True