feat(api): JobControl переписан метод Create+Валидация
This commit is contained in:
@@ -374,6 +374,8 @@
|
||||
public const string Create = Base + "/jobs/";
|
||||
public const string Update = Base + "/jobs/" + getParam;
|
||||
|
||||
public const string Preview = Base + "/jobs/units/preview";
|
||||
|
||||
public const string getParam = "{id}";
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
public required string Name { get; set; }
|
||||
|
||||
public int? MinValueRelationships { get; set; }
|
||||
|
||||
|
||||
public int? MaxValueRelationships { get; set; }
|
||||
|
||||
public bool? isParentRelationships { get; set; }
|
||||
@@ -19,5 +19,40 @@
|
||||
public required string WorkGroupMask { get; set; }
|
||||
|
||||
public required string WorkName { get; set; }
|
||||
|
||||
public required List<UnitFilterRequest> UnitFilters { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class UnitFilterRequest
|
||||
{
|
||||
public required string UnitFilterMask { get; set; }
|
||||
|
||||
public List<FieldFilterRequest>? FieldFilters { get; set; }
|
||||
|
||||
public List<RelationshipFilterRequest>? RelationshipFilters { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class FieldFilterRequest
|
||||
{
|
||||
public Guid FieldId { get; set; }
|
||||
|
||||
public string? ValueMask { get; set; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
public class RelationshipFilterRequest
|
||||
{
|
||||
public Guid FieldId { get; set; }
|
||||
|
||||
public bool? IsParent { get; set; }
|
||||
|
||||
public string? ValueMask { get; set; }
|
||||
|
||||
public bool? IsFullMatch { get; set; }
|
||||
|
||||
public bool? IsInverse { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -6,9 +6,17 @@
|
||||
|
||||
public required string Name { get; set; }
|
||||
|
||||
public int? MinValueRelationships { get; set; }
|
||||
|
||||
public int? MaxValueRelationships { get; set; }
|
||||
|
||||
public bool? isParentRelationships { get; set; }
|
||||
|
||||
public required string TemplateNameMask { get; set; }
|
||||
|
||||
public required string WorkName { get; set; }
|
||||
|
||||
public required string WorkGroupMask { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user