/
kochkatech
/
Queue
Обзор
Документация
Войти
/
kochkatech
/
Queue
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
dev
src/Queue.Server/Dtos/Dtos.cs
26 строк
1 KB
kochkareal
feat: табло очереди
24 июл 2026, 22:27
24 июл 2026, 22:27
2805d52
Код
Авторство
О чём код?
using System; using System.Collections.Generic; namespace Queue.Server.Dtos; public record LoginRequest(string Login, string Password); public record LoginResponse(int EmployeeId, string FullName, string Role, int? CurrentWindowId); public record ServiceDto(int Id, string Name, string Code, int AverageDurationMinutes); public record WindowDto(int Id, string Name, List<int> ServiceIds); public record TicketDto( int Id, string Number, int ServiceId, string ServiceName, int? WindowId, string? WindowName, string Status, DateTime CreatedAt, DateTime? CalledAt, DateTime? StartedAt, DateTime? FinishedAt); public record CallRequest(int WindowId, int EmployeeId); public record TransferRequest(int NewServiceId); // Для табло очереди (Queue.Display, этап 3) — упрощённый срез без служебных полей. public record BoardTicketDto(string Number, string ServiceName, string? WindowName, DateTime? CalledAt); public record BoardSnapshotDto(List<BoardTicketDto> ActiveCalls, List<BoardTicketDto> Waiting);