|
|
|
@ -1,24 +1,15 @@
|
|
|
|
|
using DocumentFormat.OpenXml.Drawing;
|
|
|
|
|
using Infrastructure;
|
|
|
|
|
using NetTopologySuite.Geometries;
|
|
|
|
|
using NetTopologySuite;
|
|
|
|
|
using Infrastructure;
|
|
|
|
|
using OpenAuth.App.BaseApp.Base;
|
|
|
|
|
using OpenAuth.App.Interface;
|
|
|
|
|
using OpenAuth.Repository;
|
|
|
|
|
using OpenAuth.Repository.Domain;
|
|
|
|
|
using SqlSugar;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Yitter.IdGenerator;
|
|
|
|
|
|
|
|
|
|
namespace OpenAuth.App.ServiceApp
|
|
|
|
|
{
|
|
|
|
|
public class ManageApp : SqlSugarBaseApp<LasaDronePort, SugarDbContext>
|
|
|
|
|
public class ManageApp : SqlSugarBaseApp<LasaDronePort, SugarDbContext>
|
|
|
|
|
{
|
|
|
|
|
public ManageApp(ISugarUnitOfWork<SugarDbContext> unitWork, ISimpleClient<LasaDronePort> repository, IAuth auth) : base(unitWork, repository, auth)
|
|
|
|
|
public ManageApp(ISugarUnitOfWork<SugarDbContext> unitWork, ISimpleClient<LasaDronePort> repository, IAuth auth) : base(unitWork, repository, auth)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -29,7 +20,7 @@ namespace OpenAuth.App.ServiceApp
|
|
|
|
|
/// <param name="pageSize"></param>
|
|
|
|
|
/// <param name="key"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public async Task<Response<PageInfo<List<LasaDronePort>>>> GetPageList(int pageIndex, int pageSize, string key)
|
|
|
|
|
public async Task<Response<PageInfo<List<LasaDronePort>>>> GetPageList(int pageIndex, int pageSize, string key)
|
|
|
|
|
{
|
|
|
|
|
int totalCount = 0;
|
|
|
|
|
PageModel pageModel = new PageModel()
|
|
|
|
@ -39,9 +30,9 @@ namespace OpenAuth.App.ServiceApp
|
|
|
|
|
TotalCount = totalCount
|
|
|
|
|
};
|
|
|
|
|
var list = await Repository.GetPageListAsync(it => it.Name.Contains(key), pageModel, it => it.UpdateTime, OrderByType.Desc);
|
|
|
|
|
return new Response<PageInfo<List<LasaDronePort>>>
|
|
|
|
|
return new Response<PageInfo<List<LasaDronePort>>>
|
|
|
|
|
{
|
|
|
|
|
Result = new PageInfo<List<LasaDronePort>> { Items = list, Total = totalCount }
|
|
|
|
|
Result = new PageInfo<List<LasaDronePort>> { Items = list, Total = totalCount }
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|