forked from mtusi2026/mtusi2026lab2
Разбить API на слои, комментарии на русском
routes -> http/auth -> repositories -> infra; поведение не изменилось, smoke, persistence и тесты уровня 4 перепрогнаны.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user