查询轨迹 返回参数调整成UnifyResultDto
This commit is contained in:
parent
a4b3ec9176
commit
f1a48cc9a6
@ -31,5 +31,5 @@ public interface ITrackService : IRemoteService
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="input"></param>
|
/// <param name="input"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<List<GetTrackOutput>> QueryAsync(GetTrackInput input);
|
Task<UnifyResultDto> QueryAsync(GetTrackInput input);
|
||||||
}
|
}
|
||||||
@ -17,7 +17,7 @@ public partial class TrackService
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
/// <exception cref="BusinessException"></exception>
|
/// <exception cref="BusinessException"></exception>
|
||||||
[HttpPost("Track/Query")]
|
[HttpPost("Track/Query")]
|
||||||
public async Task<List<GetTrackOutput>> QueryAsync(GetTrackInput input)
|
public async Task<UnifyResultDto> QueryAsync(GetTrackInput input)
|
||||||
{
|
{
|
||||||
if (input.OrderNos.Count > 500)
|
if (input.OrderNos.Count > 500)
|
||||||
{
|
{
|
||||||
@ -50,7 +50,7 @@ public partial class TrackService
|
|||||||
|
|
||||||
await TrackDetailSort(res, input);
|
await TrackDetailSort(res, input);
|
||||||
|
|
||||||
return res;
|
return new UnifyResultDto(true, res, "操作成功");
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task TrackDetailSort(List<GetTrackOutput> list, GetTrackInput input)
|
private async Task TrackDetailSort(List<GetTrackOutput> list, GetTrackInput input)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user