Files
zszq-trs/YLErpWeb/Controllers/BondController.cs
T
2024-06-06 11:34:37 +08:00

22 lines
548 B
C#

using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace YLErp.Web.Controllers
{
public class BondController : BaseController
{
[AllowAnonymous]
public JsonResult CalcBond(string underlyingCode, decimal price, string priceType)
{
var obj = BondCalcHepler.BondCalc(underlyingCode, price, priceType);
if (obj == null)
{
return JsonError("计算价格失败");
}
return JsonSuccess("", obj);
}
}
}