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.
51 lines
1.7 KiB
51 lines
1.7 KiB
using Microsoft.AspNetCore.Authorization;
|
|
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
|
|
PaymentRecordController : AreaApiController<PaymentRecordEntity, PaymentRecordOutputDto, PaymentRecordInput, IPaymentRecordService, long>
|
|
{
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
/// <param name="_service"></param>
|
|
public PaymentRecordController(IPaymentRecordService _service) : base(_service)
|
|
{
|
|
_service = _service;
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 异步分页查询
|
|
/// </summary>
|
|
/// <param name="search"></param>
|
|
/// <returns></returns>
|
|
[HttpPost("FindWithPagerSearchAsync")]
|
|
[FunctionAuthorize("List")]
|
|
[AllowAnonymous]
|
|
public async Task<CommonResult<PageResult<PaymentRecordOutputDto>>> FindWithPagerSearchAsync(SearchPaymentRecordModel search)
|
|
{
|
|
CommonResult<PageResult<PaymentRecordOutputDto>> result = new CommonResult<PageResult<PaymentRecordOutputDto>>
|
|
{
|
|
ResData = await _service.FindWithPagerSearchAsync(search),
|
|
ErrCode = ErrCode.successCode
|
|
};
|
|
return result;
|
|
}
|
|
}
|
|
}
|