Files
mtusi2026lab2/src/models.ts
T
celis b79be9b0eb Разбить API на слои, комментарии на русском
routes -> http/auth -> repositories -> infra; поведение не изменилось, smoke, persistence и тесты уровня 4 перепрогнаны.
2026-10-29 22:25:01 +03:00

30 lines
640 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Объекты в том виде, в каком их возвращает API (см. contracts/openapi.json).
export interface User {
id: string;
username: string;
display_name: string;
created_at: string; // RFC 3339 UTC с Z
}
export interface Chat {
id: string;
title: string;
member_ids: string[];
created_at: string;
}
export interface Message {
id: string;
chat_id: string;
sender_id: string;
text: string;
created_at: string;
}
/** Позиция в списке для keyset-пагинации: порядок (created_at, id). */
export interface Position {
created_at: string;
id: string;
}