namespace DS.WMS.FinanceApi.controller
{
///
/// 费用汇率相关接口
///
[Route("api/[controller]")]
[ApiController]
public class CostExchangeRateController : DsBaseController
{
///
/// 根据ID查询汇率基本信息
///
///
[HttpGet("GetCostBasic")]
public async Task GetCostBasic(long id)
{
var getUserQuery = new CostExchangeRateCommand { Id = id };
var result = await Mediator.Send(getUserQuery);
return Ok(result);
}
///
/// 根据ID删除或者禁用相关的币别
///
///
[HttpGet("DelCostBasic")]
public async Task DelCostBasic(long id)
{
var getUserQuery = new CostExchangeForDelCommand { Id = id };
var result = await Mediator.Send(getUserQuery);
return Ok(result);
}
///
/// 币别添加
///
///
[HttpPost("AddForCostBasic")]
public async Task AddForCostBasic(CostExchangeForAddCommand dto)
{
var result = await Mediator.Send(dto);
return Ok(result);
}
///
/// 请求测试
///
[HttpGet("test")]
public int Test()
{
var a = 1;
var b = 2;
var c = a + b;
return a / 0;
}
}
}