feat(api): Новый контроллер JobUnitPreview, для получения предпросмотра затрагиваемых ЭК работой
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using AutoMapper;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using PARR.API.Contracts.V1;
|
||||
using PARR.API.Contracts.V1.Requests.Queries;
|
||||
using PARR.API.Contracts.V1.Responses;
|
||||
using PARR.API.Contracts.V1.Responses.Base;
|
||||
using PARR.API.Controllers.V1.Base;
|
||||
using PARR.API.Extensions;
|
||||
using PARR.API.Services.Interfaces;
|
||||
using PARR.DAL.CacheServices;
|
||||
using PARR.DAL.DomainModels;
|
||||
using PARR.DAL.DomainServices.Interfaces;
|
||||
using PARR.DAL.Models.Job;
|
||||
using PARR.DAL.Services.Interfaces;
|
||||
using PARR.DAL.Services.Interfaces.Job;
|
||||
@@ -24,6 +31,8 @@ namespace PARR.API.Controllers.V1
|
||||
private readonly IFieldFilterService fieldFilterService;
|
||||
private readonly IJobService jobService;
|
||||
private readonly IJobUnitFilterService jobUnitFilterService;
|
||||
private readonly IUnitFilterService unitFilterService;
|
||||
private readonly IMapper mapper;
|
||||
|
||||
public TestController(
|
||||
IClientService clientService,
|
||||
@@ -33,7 +42,9 @@ namespace PARR.API.Controllers.V1
|
||||
IUnitService unitService,
|
||||
IFieldFilterService fieldFilterService,
|
||||
IJobService jobService,
|
||||
IJobUnitFilterService jobUnitFilterService
|
||||
IJobUnitFilterService jobUnitFilterService,
|
||||
IUnitFilterService unitFilterService,
|
||||
IMapper mapper
|
||||
)
|
||||
{
|
||||
this.clientService = clientService;
|
||||
@@ -44,6 +55,8 @@ namespace PARR.API.Controllers.V1
|
||||
this.fieldFilterService = fieldFilterService;
|
||||
this.jobService = jobService;
|
||||
this.jobUnitFilterService = jobUnitFilterService;
|
||||
this.unitFilterService = unitFilterService;
|
||||
this.mapper = mapper;
|
||||
}
|
||||
|
||||
|
||||
@@ -174,8 +187,6 @@ namespace PARR.API.Controllers.V1
|
||||
|
||||
// return Ok(result);
|
||||
//}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class CaheRequestTest
|
||||
|
||||
Reference in New Issue
Block a user