You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

30 lines
925 B

using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Znyc.CloudCar.IServices.Browse;
using Znyc.CloudCar.Model.ViewModels.ReportsCallBack;
namespace Znyc.CloudCar.Controller
{
public class BrowseController : ControllerBase
{
private readonly IBrowseService _browseSrvice;
public BrowseController(IBrowseService browseSrvice)
{
_browseSrvice = browseSrvice;
}
/// <summary>
/// 分页查询浏览记录列表
/// </summary>
/// <param name="currentPage"></param>
/// <param name="pageSize"></param>
/// <returns></returns>
[HttpGet]
[Authorize]
[Route("api/v1/browse/search")]
public async Task<ResponseOutput> PageAsync(int currentPage = 1, int pageSize = 10)
{
return await _browseSrvice.PageAsync(currentPage, pageSize);
}
}
}