feat(api): jobGroup - управление автораспределением
This commit is contained in:
@@ -18,5 +18,11 @@ namespace PARR.DAL.Services.Implementations.Job
|
||||
protected override DbSet<JobGroup> EntitySet => dataContext.JobGroups;
|
||||
|
||||
protected override DataContext EntitiContext => dataContext;
|
||||
|
||||
|
||||
public void DeleteDistributionConfig(JobGroupDistributionConfig distributionConfig)
|
||||
{
|
||||
EntitiContext.JobGroupDistributionConfigs.Remove(distributionConfig);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,14 @@
|
||||
using PARR.DAL.Services.Interfaces.Base;
|
||||
using PARR.DAL.Models.Job;
|
||||
using PARR.DAL.Services.Interfaces.Base;
|
||||
|
||||
namespace PARR.DAL.Services.Interfaces.Job
|
||||
{
|
||||
public interface IJobGroupService : IBaseService<Models.Job.JobGroup>
|
||||
{
|
||||
/// <summary>
|
||||
/// Удалить настройки автораспределения
|
||||
/// </summary>
|
||||
/// <param name="distributionConfig"></param>
|
||||
void DeleteDistributionConfig(JobGroupDistributionConfig distributionConfig);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user