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.
 
 

49 lines
1.7 KiB

using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using Znyc.Cloudcar.Admin.AspNetCore.Controllers;
using Znyc.Cloudcar.Admin.AspNetCore.Entitys;
using Znyc.Cloudcar.Admin.AspNetCore.Mvc;
using Znyc.Cloudcar.Admin.Commons.Entitys;
using Znyc.Cloudcar.Admin.Commons.Pages;
using Znyc.Cloudcar.Admin.Security.Dtos;
using Znyc.Cloudcar.Admin.Security.Entitys;
using Znyc.Cloudcar.Admin.Security.IServices;
namespace Znyc.Cloudcar.Admin.WebApi.Controllers
{
/// <summary>
/// 云币记录服务
/// </summary>
[ApiController]
[Route("api/Security/[controller]")]
public class
CurrencyRecordController : AreaApiController<CurrencyRecordEntity, CurrencyRecordOutputDto, CurrencyRecordInput, ICurrencyRecordService, long>
{
/// <summary>
/// 构造函数
/// </summary>
/// <param name="_service"></param>
public CurrencyRecordController(ICurrencyRecordService _service) : base(_service)
{
_service = _service;
}
/// <summary>
/// 异步分页查询
/// </summary>
/// <param name="search"></param>
/// <returns></returns>
[HttpPost("FindWithPagerSearchAsync")]
[FunctionAuthorize("List")]
public async Task<CommonResult<PageResult<CurrencyRecordOutputDto>>> FindWithPagerSearchAsync(SearchCurrencyRecordModel search)
{
CommonResult<PageResult<CurrencyRecordOutputDto>> result = new CommonResult<PageResult<CurrencyRecordOutputDto>>
{
ResData = await _service.FindWithPagerSearchAsync(search),
ErrCode = ErrCode.successCode
};
return result;
}
}
}