添加航飞任务图片查询

main
陈伟 2 months ago
parent 5fb3078919
commit 0a5579d4b9

@ -977,5 +977,18 @@ namespace OpenAuth.App.ServiceApp
.GetSingleAsync(r => r.Id == airLineId)
};
}
public async Task<Response<List<LasaMediaFile>>> GetTAskImageList(string taskId)
{
var list = await Repository
.ChangeRepository<SugarRepositiry<LasaMediaFile>>()
.AsQueryable()
.Where(r => r.TaskId == taskId)
.ToListAsync();
return new Response<List<LasaMediaFile>>()
{
Result = list
};
}
}
}

@ -232,6 +232,7 @@ namespace OpenAuth.WebApi.Controllers.ServiceControllers
return result;
}
/// <summary>
/// 航线详情
/// </summary>
@ -456,6 +457,14 @@ namespace OpenAuth.WebApi.Controllers.ServiceControllers
await _app.PendingFlyTask(taskId);
}
// 任务图片列表查询
[HttpGet]
[AllowAnonymous]
public async Task<Response<List<LasaMediaFile>>> GetTAskImageList(string taskId)
{
return await _app.GetTAskImageList(taskId);
}
[HttpPost]
[AllowAnonymous]
public async Task<string> TestExecuteFlyTask(string flightid)

Loading…
Cancel
Save