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); } } }