namespace Yw.Application
|
{
|
/// <summary>
|
/// RunRealRecord
|
/// </summary>
|
[Route("Run/Real/Record")]
|
[ApiDescriptionSettings("Run", Name = "运行实时记录", Order = 90000)]
|
public class RunRealRecord_Controller : IDynamicApiController
|
{
|
private readonly Service.RunRealRecord _service = new();
|
|
|
#region Insert
|
|
/// <summary>
|
/// 插入最近一条数据
|
/// </summary>
|
[Route("InsertLastRecord@V1.0")]
|
[HttpPost]
|
public bool InsertLastRecord([Required] AddRunRealLastRecordInput input)
|
{
|
var model = input.Adapt<AddRunRealLastRecordInput, Model.RunRealRecord>();
|
return _service.InsertLastRecord(model);
|
}
|
|
#endregion
|
|
|
|
|
|
|
|
|
}
|
}
|