对接前端
This commit is contained in:
parent
17a3a8a36d
commit
ca7b3d7353
@ -51,16 +51,9 @@ public class TrackTemplateService : ApplicationService
|
|||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpGet("GetDetail")]
|
[HttpGet("GetDetail")]
|
||||||
public async Task<UnifyResultDto<GetTrackTemplateDetailDto>> GetDetailAsync(int id)
|
public async Task<GetTrackTemplateDetailVO?> GetDetailAsync(int id)
|
||||||
{
|
{
|
||||||
var detailInfo = await _trackTemplateRepository.GetDetailAsync(id);
|
return await _trackTemplateRepository.GetDetailAsync(id);
|
||||||
if (detailInfo == null)
|
|
||||||
{
|
|
||||||
return new UnifyResultDto<GetTrackTemplateDetailDto>(false, null, "未查询到轨迹模版");
|
|
||||||
}
|
|
||||||
|
|
||||||
var dto = ObjectMapper.Map<GetTrackTemplateDetailVO, GetTrackTemplateDetailDto>(detailInfo);
|
|
||||||
return new UnifyResultDto<GetTrackTemplateDetailDto>(GlobalConst.SuccessCode, "", dto);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user