Разбить API на слои, комментарии на русском

routes -> http/auth -> repositories -> infra; поведение не изменилось, smoke, persistence и тесты уровня 4 перепрогнаны.
This commit is contained in:
celis
2026-10-29 22:25:01 +03:00
parent cac37bddec
commit b79be9b0eb
35 changed files with 729 additions and 486 deletions
+29
View File
@@ -0,0 +1,29 @@
// Объекты в том виде, в каком их возвращает 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;
}