2024-11-14 10:43:15 +08:00
|
|
|
|
using Infrastructure;
|
2024-11-14 10:33:48 +08:00
|
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
2024-11-14 10:43:15 +08:00
|
|
|
|
using OpenAuth.App.ServiceApp.Achievement;
|
2024-11-14 14:41:13 +08:00
|
|
|
|
using OpenAuth.App.ServiceApp.Achievement.Request;
|
2024-11-14 10:33:48 +08:00
|
|
|
|
using OpenAuth.Repository.Domain;
|
|
|
|
|
|
|
2024-11-14 14:41:13 +08:00
|
|
|
|
namespace OpenAuth.WebApi.Controllers.ServiceControllers.AchievementManage;
|
2024-11-14 10:33:48 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
2024-11-14 14:41:13 +08:00
|
|
|
|
* ai解译成果管理(shp)
|
2024-11-14 10:33:48 +08:00
|
|
|
|
*/
|
|
|
|
|
|
[Route("api/[controller]/[action]")]
|
|
|
|
|
|
[ApiController]
|
2024-11-14 10:43:15 +08:00
|
|
|
|
public class InAiShpController : ControllerBase
|
2024-11-14 10:33:48 +08:00
|
|
|
|
{
|
2024-11-14 10:43:15 +08:00
|
|
|
|
private readonly InsAiShpApp _app;
|
2024-11-14 10:33:48 +08:00
|
|
|
|
|
2024-11-14 10:43:15 +08:00
|
|
|
|
public InAiShpController(InsAiShpApp app)
|
2024-11-14 10:33:48 +08:00
|
|
|
|
{
|
|
|
|
|
|
_app = app;
|
|
|
|
|
|
}
|
2024-11-14 15:27:03 +08:00
|
|
|
|
|
2024-11-14 10:33:48 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// ai解译成果管理列表
|
|
|
|
|
|
/// </summary>
|
2024-11-14 14:41:13 +08:00
|
|
|
|
/// <param name="req">地区 时间段 文件名称</param>
|
2024-11-14 10:33:48 +08:00
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet]
|
|
|
|
|
|
public async Task<Response<PageInfo<List<InsAishp>>>> Load([FromQuery] InsAishpQuery req)
|
|
|
|
|
|
{
|
|
|
|
|
|
var result = await _app.Load(req);
|
|
|
|
|
|
return new Response<PageInfo<List<InsAishp>>> { Result = result };
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-11-14 15:27:03 +08:00
|
|
|
|
[HttpGet]
|
|
|
|
|
|
public async Task<Response<InsAishp>> GetAiShp(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return await _app.GetAiShp(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-11-14 10:43:15 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新按钮接口
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
2024-11-14 10:33:48 +08:00
|
|
|
|
[HttpPost]
|
2024-11-14 14:41:13 +08:00
|
|
|
|
public async Task<Response<bool>> Update()
|
2024-11-14 10:33:48 +08:00
|
|
|
|
{
|
2024-11-14 14:41:13 +08:00
|
|
|
|
return await _app.Update();
|
2024-11-14 10:33:48 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|