添加航飞任务图片查询

feature-flyModify
陈伟 2025-07-02 13:51:38 +08:00
parent 5fb3078919
commit 0a5579d4b9
2 changed files with 22 additions and 0 deletions

View File

@ -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
};
}
}
}

View File

@ -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)