fix(api,core): Исправлена логика выдачи переименованных шаблонов роботам

This commit is contained in:
Mikhail Trubnikov
2026-07-28 14:41:01 +10:00
parent 556d895c7c
commit 8798529b4d
12 changed files with 276 additions and 21 deletions

View File

@@ -1,4 +1,5 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using PARR.API.Contracts.V1;
using PARR.API.Contracts.V1.Requests.BaseRequests;
@@ -8,10 +9,12 @@ using PARR.API.Controllers.V1.Base;
using PARR.API.Helpers;
using PARR.Core.Repositories.Interfaces;
using PARR.Core.Services.NextRunServices;
using PARR.Domain.Common.Roles;
using PARR.Domain.Enums;
namespace PARR.API.Controllers.V1.Statistics
{
[Authorize(Roles = ParrRoles.EsppRobot.RoleOrAdmin)]
public class StatTemplateAutoControlController : BaseApiController
{
private readonly ITemplateRepository templateService;