Spaces:
Runtime error
Runtime error
Download src/SCM.Api/Controllers/FolhaTarefaItensController.cs from rafaeldavila/scm-api: direct link, hf CLI and curl.
- Browser
- Download file 1.93 kB
-
https://huggingface.co/spaces/rafaeldavila/scm-api/resolve/main/src/SCM.Api/Controllers/FolhaTarefaItensController.cs
- Command line
-
hf download hf://spaces/rafaeldavila/scm-api/src/SCM.Api/Controllers/FolhaTarefaItensController.cs
-
curl -L -o FolhaTarefaItensController.cs https://huggingface.co/spaces/rafaeldavila/scm-api/resolve/main/src/SCM.Api/Controllers/FolhaTarefaItensController.cs
1.93 kB
| using Asp.Versioning; | |
| using Microsoft.AspNetCore.Authorization; | |
| using Microsoft.AspNetCore.Mvc; | |
| using SCM.Application.Planejamento; | |
| using SCM.Application.Planejamento.Dtos; | |
| using SCM.Shared.Api; | |
| using SCM.Shared.Constants; | |
| namespace SCM.Api.Controllers; | |
| /// <summary>Itens programados (PA/PP) de uma Folha de Tarefa.</summary> | |
| [] | |
| [] | |
| [] | |
| [] | |
| [] | |
| public sealed class FolhaTarefaItensController : ControllerBase | |
| { | |
| private readonly IFolhaTarefaItemService _service; | |
| public FolhaTarefaItensController(IFolhaTarefaItemService service) => _service = service; | |
| /// <summary>Lista os itens programados da FT.</summary> | |
| [] | |
| [] | |
| [] | |
| public async Task<ActionResult<IReadOnlyList<FtItemResponse>>> Get(Guid folhaTarefaId, CancellationToken ct = default) | |
| => Ok(await _service.GetByFolhaTarefaAsync(folhaTarefaId, ct)); | |
| /// <summary>Programa (reconstrói) os itens da FT — só em FT EM_PROGRAMACAO.</summary> | |
| [] | |
| [] | |
| [] | |
| [] | |
| [] | |
| [] | |
| public async Task<ActionResult<IReadOnlyList<FtItemResponse>>> Programar( | |
| Guid folhaTarefaId, [FromBody] ProgramarItensFtRequest request, CancellationToken ct = default) | |
| => Ok(await _service.ProgramarAsync(folhaTarefaId, request, ct)); | |
| } | |