feat(api): В респонс RobotTaskScheduleSchResponse добавлено поле TypeCode

This commit is contained in:
Mikhail Trubnikov
2023-10-12 09:44:44 +10:00
parent 494441dbe6
commit c2c381896b
3 changed files with 10 additions and 0 deletions

View File

@@ -47,6 +47,7 @@
public class RobotTaskScheduleSchResponse
{
public required string Type { get; set; }
public int TypeCode { get; set; }
public required string Value { get; set; }
public int Order { get; set; }
}

View File

@@ -28,6 +28,7 @@ namespace PARR.API.MappingProfiles.Resolvers
{
Order = conf.Order,
Type = conf.EsppSchType!.Name,
TypeCode = conf.EsppSchType!.Id,
Value = conf.EsppSchValues.First().EsppSchTypeValue!.Value
});