parent
f74b9e1e75
commit
bc84372090
|
|
@ -6,11 +6,11 @@ using OpenAuth.Repository;
|
|||
using OpenAuth.Repository.Domain;
|
||||
using SqlSugar;
|
||||
|
||||
namespace OpenAuth.App.ServiceApp;
|
||||
namespace OpenAuth.App.ServiceApp.Achievement;
|
||||
|
||||
public class AchievementManageApp : SqlSugarBaseApp<InsAishp, SugarDbContext>
|
||||
public class InsAiShpApp : SqlSugarBaseApp<InsAishp, SugarDbContext>
|
||||
{
|
||||
public AchievementManageApp(ISugarUnitOfWork<SugarDbContext> unitWork, ISimpleClient<InsAishp> repository,
|
||||
public InsAiShpApp(ISugarUnitOfWork<SugarDbContext> unitWork, ISimpleClient<InsAishp> repository,
|
||||
IAuth auth) : base(unitWork, repository, auth)
|
||||
{
|
||||
}
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
using Infrastructure;
|
||||
using OpenAuth.App.BaseApp.Base;
|
||||
using OpenAuth.App.Interface;
|
||||
using OpenAuth.App.ServiceApp.request;
|
||||
using OpenAuth.Repository;
|
||||
using OpenAuth.Repository.Domain;
|
||||
using SqlSugar;
|
||||
|
||||
namespace OpenAuth.App.ServiceApp.Achievement;
|
||||
|
||||
public class InsTifApp : SqlSugarBaseApp<InsTif, SugarDbContext>
|
||||
{
|
||||
public InsTifApp(ISugarUnitOfWork<SugarDbContext> unitWork, ISimpleClient<InsTif> repository,
|
||||
IAuth auth) : base(unitWork, repository, auth)
|
||||
{
|
||||
}
|
||||
|
||||
public async Task<PageInfo<List<InsTif>>> Load(InsAishpQuery req)
|
||||
{
|
||||
RefAsync<int> total = 0;
|
||||
var result = await Repository.AsQueryable()
|
||||
.ToPageListAsync(req.page, req.limit, total);
|
||||
return new PageInfo<List<InsTif>>
|
||||
{
|
||||
Items = result,
|
||||
Total = total
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +1,8 @@
|
|||
using Infrastructure;
|
||||
using Infrastructure;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using OpenAuth.App.ServiceApp;
|
||||
using OpenAuth.App.ServiceApp.Achievement;
|
||||
using OpenAuth.App.ServiceApp.request;
|
||||
using OpenAuth.Repository.Domain;
|
||||
|
||||
|
|
@ -12,11 +13,11 @@ namespace OpenAuth.WebApi.Controllers.ServiceControllers;
|
|||
*/
|
||||
[Route("api/[controller]/[action]")]
|
||||
[ApiController]
|
||||
public class AchievementManageController:ControllerBase
|
||||
public class InAiShpController : ControllerBase
|
||||
{
|
||||
private readonly AchievementManageApp _app;
|
||||
private readonly InsAiShpApp _app;
|
||||
|
||||
public AchievementManageController(AchievementManageApp app)
|
||||
public InAiShpController(InsAiShpApp app)
|
||||
{
|
||||
_app = app;
|
||||
}
|
||||
|
|
@ -36,7 +37,10 @@ public class AchievementManageController:ControllerBase
|
|||
return new Response<PageInfo<List<InsAishp>>> { Result = result };
|
||||
}
|
||||
|
||||
// 更新
|
||||
/// <summary>
|
||||
/// 更新按钮接口
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public Response<string> Update()
|
||||
{
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
using Infrastructure;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using OpenAuth.App.ServiceApp;
|
||||
using OpenAuth.App.ServiceApp.Achievement;
|
||||
using OpenAuth.App.ServiceApp.request;
|
||||
using OpenAuth.Repository.Domain;
|
||||
|
||||
namespace OpenAuth.WebApi.Controllers.ServiceControllers;
|
||||
|
||||
/**
|
||||
* 成果管理
|
||||
*/
|
||||
[Route("api/[controller]/[action]")]
|
||||
[ApiController]
|
||||
public class InsTifController : ControllerBase
|
||||
{
|
||||
private readonly InsTifApp _app;
|
||||
|
||||
public InsTifController(InsTifApp app)
|
||||
{
|
||||
_app = app;
|
||||
}
|
||||
// ai解译成果管理 列表 查询条件
|
||||
// 检索条件: 地区 时间段
|
||||
|
||||
/// <summary>
|
||||
/// ai解译成果管理列表
|
||||
/// </summary>
|
||||
/// <param name="req"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
[AllowAnonymous]
|
||||
public async Task<Response<PageInfo<List<InsTif>>>> Load([FromQuery] InsAishpQuery req)
|
||||
{
|
||||
var result = await _app.Load(req);
|
||||
return new Response<PageInfo<List<InsTif>>> { Result = result };
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新按钮接口
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public Response<string> Update()
|
||||
{
|
||||
return new Response<string>() { };
|
||||
}
|
||||
// tif影像列表
|
||||
// 详情
|
||||
}
|
||||
Loading…
Reference in New Issue