44 lines
993 B
C#
44 lines
993 B
C#
|
|
using System;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using System.Threading.Tasks;
|
||
|
|
using Infrastructure;
|
||
|
|
using Microsoft.AspNetCore.Authorization;
|
||
|
|
using Microsoft.AspNetCore.Mvc;
|
||
|
|
using OpenAuth.App;
|
||
|
|
using OpenAuth.App.Request;
|
||
|
|
using OpenAuth.App.Response;
|
||
|
|
using OpenAuth.Repository.Domain;
|
||
|
|
|
||
|
|
namespace OpenAuth.WebApi.Controllers
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// 农机
|
||
|
|
/// </summary>
|
||
|
|
[Route("api/[controller]/[action]")]
|
||
|
|
[ApiController]
|
||
|
|
public class IdleNongjiController : ControllerBase
|
||
|
|
{
|
||
|
|
private readonly IdleNongjiApp _app;
|
||
|
|
public IdleNongjiController(IdleNongjiApp app)
|
||
|
|
{
|
||
|
|
_app = app;
|
||
|
|
}
|
||
|
|
|
||
|
|
#region 查询
|
||
|
|
|
||
|
|
#region 分页
|
||
|
|
/// <summary>
|
||
|
|
/// 分页
|
||
|
|
/// </summary>
|
||
|
|
[HttpGet]
|
||
|
|
public async Task<Response<PageInfo<List<IdleNongji>>>> LoadPage([FromQuery] PageReq request)
|
||
|
|
{
|
||
|
|
return await _app.LoadPage(request);
|
||
|
|
}
|
||
|
|
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
#endregion
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|