using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System.Threading.Tasks; using Znyc.Recruitment.Admin.AspNetCore.Controllers; using Znyc.Recruitment.Admin.AspNetCore.Entitys; using Znyc.Recruitment.Admin.AspNetCore.Mvc; using Znyc.Recruitment.Admin.Commons.Entitys; using Znyc.Recruitment.Admin.Commons.Pages; using Znyc.Recruitment.Admin.Security.Dtos; using Znyc.Recruitment.Admin.Security.Entitys; using Znyc.Recruitment.Admin.Security.IServices; namespace Znyc.Recruitment.Admin.WebApi.Controllers { /// /// 付款服务 /// [ApiController] [Route("api/Security/[controller]")] public class PaymentRecordController : AreaApiController { /// /// 构造函数 /// /// public PaymentRecordController(IPaymentRecordService _service) : base(_service) { _service = _service; } /// /// 异步分页查询 /// /// /// [HttpPost("FindWithPagerSearchAsync")] [FunctionAuthorize("List")] [AllowAnonymous] public async Task>> FindWithPagerSearchAsync(SearchPaymentRecordModel search) { CommonResult> result = new CommonResult> { ResData = await _service.FindWithPagerSearchAsync(search), ErrCode = ErrCode.successCode }; return result; } } }