using System;
using System.Collections.Generic;
using IRaCIS.Api.Filter;
using IRaCIS.Application.Interfaces;
using IRaCIS.Application.ViewModels.Pay;
using IRaCIS.Core.Application.Contracts.RequestAndResponse;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace IRaCIS.Api.Controllers.Pay
{
///
/// Financial 支撑信息---医生月度调整
///
[Route("paymentAdjustment")]
[ApiController, Authorize, ApiExplorerSettings(GroupName = "Financial")]
public class PaymentAdjustmentController : ControllerBase
{
private readonly IPaymentAdjustmentService _paymentAdjustmentService;
public PaymentAdjustmentController(IPaymentAdjustmentService paymentAdjustmentService)
{
_paymentAdjustmentService = paymentAdjustmentService;
}
///
/// 获取费用调整列表
///
[HttpPost, Route("getPaymentAdjustmentList")]
public IResponseOutput> GetPaymentAdjustmentList(
PaymentAdjustmentQueryDTO queryParam)
{
var result = _paymentAdjustmentService.GetPaymentAdjustmentList(queryParam);
return ResponseOutput.Ok(result);
}
///
/// 添加或更新费用调整[AUTH]
///
[LogFilter]
[HttpPost, Route("addOrUpdatePaymentAdjustment")]
public IResponseOutput AddOrUpdatePaymentAdjustment(PaymentAdjustmentCommand addOrUpdateModel)
{
return _paymentAdjustmentService.AddOrUpdatePaymentAdjustment(addOrUpdateModel,Guid.Parse(User.FindFirst("id").Value));
}
///
/// 删除费用调整记录
///
[LogFilter]
[HttpDelete, Route("deletePaymentAdjustment/{id:guid}")]
public IResponseOutput DeleteCostAdjustment(Guid id)
{
return _paymentAdjustmentService.DeleteCostAdjustment(id);
}
///
/// 获取医生列表
///
[HttpGet, Route("getReviewerSelectList")]
public IResponseOutput> GetReviewerSelectList()
{
return ResponseOutput.Ok(_paymentAdjustmentService.GetReviewerSelectList());
}
}
}