CS107: Renamed Mse to Rop in Cluster rop stat

This commit is contained in:
KharchenkoVladimir 2021-11-19 11:17:45 +05:00
parent 00798becb0
commit 07f76afa35
3 changed files with 14 additions and 14 deletions

View File

@ -1,8 +0,0 @@
namespace AsbCloudApp.Data
{
public class ClusterMseStatDto
{
public double MseMax { get; set; }
public double MseAverage { get; set; }
}
}

View File

@ -0,0 +1,8 @@
namespace AsbCloudApp.Data
{
public class ClusterRopStatDto
{
public double RopMax { get; set; }
public double RopAverage { get; set; }
}
}

View File

@ -37,9 +37,9 @@ namespace AsbCloudWebApi.Controllers
/// <param name="idWell">id скважины с данного куста (через нее будут полуены данные)</param> /// <param name="idWell">id скважины с данного куста (через нее будут полуены данные)</param>
/// <param name="token"></param> /// <param name="token"></param>
/// <returns>Возвращает данные по среднему и максимальному МСП на кусту</returns> /// <returns>Возвращает данные по среднему и максимальному МСП на кусту</returns>
[HttpGet("{idWell}/mseStat")] [HttpGet("{idWell}/ropStat")]
[ProducesResponseType(typeof(ClusterMseStatDto), (int)System.Net.HttpStatusCode.OK)] [ProducesResponseType(typeof(ClusterRopStatDto), (int)System.Net.HttpStatusCode.OK)]
public async Task<IActionResult> GetClusterMseStatAsync([FromRoute] int idWell, public async Task<IActionResult> GetClusterRopStatAsync([FromRoute] int idWell,
CancellationToken token = default) CancellationToken token = default)
{ {
if (!await CanUserAccessToWellAsync(idWell, token).ConfigureAwait(false)) if (!await CanUserAccessToWellAsync(idWell, token).ConfigureAwait(false))
@ -48,10 +48,10 @@ namespace AsbCloudWebApi.Controllers
// var result = await operationService.GetOperationsAsync( // var result = await operationService.GetOperationsAsync(
// idWell, token).ConfigureAwait(false); // idWell, token).ConfigureAwait(false);
var result = new ClusterMseStatDto() var result = new ClusterRopStatDto()
{ {
MseMax = 3.2, RopMax = 3.2,
MseAverage = 1.1 RopAverage = 1.1
}; };
return Ok(result); return Ok(result);