From ca7b3d7353e4582cc43d4b0330c0a912f278a878 Mon Sep 17 00:00:00 2001
From: xiaolipro <2357729423@qq.com>
Date: Sat, 14 Sep 2024 14:30:50 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E5=89=8D=E7=AB=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Services/TrackTemplates/TrackTemplateService.cs | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/src/SJZY.Track.Application/Services/TrackTemplates/TrackTemplateService.cs b/src/SJZY.Track.Application/Services/TrackTemplates/TrackTemplateService.cs
index 2d849b44..429fb440 100644
--- a/src/SJZY.Track.Application/Services/TrackTemplates/TrackTemplateService.cs
+++ b/src/SJZY.Track.Application/Services/TrackTemplates/TrackTemplateService.cs
@@ -51,16 +51,9 @@ public class TrackTemplateService : ApplicationService
///
///
[HttpGet("GetDetail")]
- public async Task> GetDetailAsync(int id)
+ public async Task GetDetailAsync(int id)
{
- var detailInfo = await _trackTemplateRepository.GetDetailAsync(id);
- if (detailInfo == null)
- {
- return new UnifyResultDto(false, null, "未查询到轨迹模版");
- }
-
- var dto = ObjectMapper.Map(detailInfo);
- return new UnifyResultDto(GlobalConst.SuccessCode, "", dto);
+ return await _trackTemplateRepository.GetDetailAsync(id);
}
///