feat(api): реализован GetAll UnitFieldValue по Id FieldValue
This commit is contained in:
@@ -431,13 +431,16 @@
|
||||
public const string getParam = "{id}";
|
||||
}
|
||||
|
||||
#region UnitField
|
||||
public static class UnitField
|
||||
{
|
||||
public const string GetAll = Base + "/unit-fields/";
|
||||
public const string Get = Base + "/unit-fields/" + getParam;
|
||||
public const string GetAllValues = Base + "/unit-fields/" + getParam+"/values";
|
||||
|
||||
public const string getParam = "{id}";
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Расписание ЕСПП
|
||||
|
||||
|
||||
@@ -10,6 +10,6 @@
|
||||
/// <summary>
|
||||
/// Соответствующее полю значение
|
||||
/// </summary>
|
||||
public required ValueResponse Value { get; set; }
|
||||
public required UnitFieldValueResponse Value { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
11
PARR.API/Contracts/V1/Responses/UnitFieldValueResponse.cs
Normal file
11
PARR.API/Contracts/V1/Responses/UnitFieldValueResponse.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace PARR.API.Contracts.V1.Responses
|
||||
{
|
||||
public class UnitFieldValueBaseResponse
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string? Value { get; set; }
|
||||
}
|
||||
|
||||
public class UnitFieldValueResponse : UnitFieldValueBaseResponse { }
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
namespace PARR.API.Contracts.V1.Responses
|
||||
{
|
||||
public class ValueBaseResponse
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string Value { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class ValueResponse : ValueBaseResponse
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user