45 lines
1.2 KiB
C#
45 lines
1.2 KiB
C#
using Infrastructure;
|
||
using Microsoft.AspNetCore.Authorization;
|
||
using Microsoft.AspNetCore.Mvc;
|
||
using OpenAuth.App.ServiceApp.Achievement;
|
||
using OpenAuth.App.ServiceApp.Achievement.Request;
|
||
using OpenAuth.Repository.Domain;
|
||
|
||
namespace OpenAuth.WebApi.Controllers.ServiceControllers.AchievementManage;
|
||
|
||
/**
|
||
* ai解译成果管理(shp)
|
||
*/
|
||
[Route("api/[controller]/[action]")]
|
||
[ApiController]
|
||
public class InAiShpController : ControllerBase
|
||
{
|
||
private readonly InsAiShpApp _app;
|
||
|
||
public InAiShpController(InsAiShpApp app)
|
||
{
|
||
_app = app;
|
||
}
|
||
/// <summary>
|
||
/// ai解译成果管理列表
|
||
/// </summary>
|
||
/// <param name="req">地区 时间段 文件名称</param>
|
||
/// <returns></returns>
|
||
[HttpGet]
|
||
[AllowAnonymous]
|
||
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 };
|
||
}
|
||
|
||
/// <summary>
|
||
/// 更新按钮接口
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
[HttpPost]
|
||
public async Task<Response<bool>> Update()
|
||
{
|
||
return await _app.Update();
|
||
}
|
||
} |