using IRaCIS.Application.Interfaces;
using IRaCIS.Application.ViewModels;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using IRaCIS.Core.Application.Contracts.RequestAndResponse;
namespace IRaCIS.Api.Controllers
{
///
/// Financial 支撑信息---项目收入费用
///
[Route("trialRevenuesPrice")]
[ApiController, Authorize, ApiExplorerSettings(GroupName = "Financial")]
public class TrialRevenuesPriceController : ControllerBase
{
private readonly ITrialRevenuesPriceService _trialRevenuesPriceService;
public TrialRevenuesPriceController(ITrialRevenuesPriceService trialRevenuesPriceService)
{
_trialRevenuesPriceService = trialRevenuesPriceService;
}
///
/// 保存(替换)项目费用收入单价信息[New]
///
///
///
[HttpPost, Route("addOrUpdateTrialRevenuesPrice")]
public IResponseOutput AddOrUpdateTrialRevenuesPrice(TrialRevenuesPriceDTO model)
{
return _trialRevenuesPriceService.AddOrUpdateTrialRevenuesPrice(model);
}
///
/// 获取项目收入费用信息列表[New]
///
///
///
[HttpPost, Route("getTrialRevenuesPriceList")]
public IResponseOutput> GetTrialRevenuesPriceList(TrialRevenuesPriceQueryDTO param)
{
return ResponseOutput.Ok(_trialRevenuesPriceService.GetTrialRevenuesPriceList(param));
}
}
}