22 lines
578 B
C#
22 lines
578 B
C#
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace YLErp.Web.Controllers
|
|
{
|
|
public class BondController : BaseController
|
|
{
|
|
|
|
[AllowAnonymous]
|
|
public JsonResult CalcBond(string underlyingCode, int positionType, decimal price, string valueDate)
|
|
{
|
|
var obj = HTCalcHepler.BondCalc(underlyingCode, positionType, price, valueDate);
|
|
if (obj == null)
|
|
{
|
|
return JsonError("计算价格失败");
|
|
}
|
|
|
|
return JsonSuccess("", obj);
|
|
}
|
|
}
|
|
}
|