
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using XYY.Common.Standard;
using XYY.Core.Standard.Mvc;
using XYY.Service.Standard.Finance.Charging.Base;

namespace XYY.Api.Finance.Charges.Controllers
{
    /// <summary>
    /// 补款操作
    /// </summary>
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class TransactionController : ApiControllerBase
    {
        private ITranscationService transcationService;

        public TransactionController(ITranscationService transcationService)
        {
            this.transcationService = transcationService;
        }

        /// <summary>
        /// 计费明细
        /// </summary>
        /// <param name="queryModel"></param>
        /// <returns></returns>
        public async Task<IActionResult> QueryPager(QueryModel queryModel)
        {
            return Ok(await this.transcationService.QueryPager(queryModel));
        }


        
    }
}
