Прощальные сообщения: отправленные только при статусе «Отправлено»
This commit is contained in:
+2
-2
@@ -81,8 +81,8 @@
|
||||
|
||||
## Контракты API (для фронта и внешних интеграций)
|
||||
|
||||
- `GET /api/farewells?limit=&offset=&resident=` → `{ items, total }`
|
||||
(item: все поля строки; админ — все, не-admin — свои).
|
||||
- `GET /api/farewells?limit=&offset=&resident=&deleted=&sent=` → `{ items, total }`
|
||||
(item: все поля строки; админ — все, не-admin — свои; `sent=1|0` — только отправленные/неотправленные).
|
||||
- `GET /api/farewells/templates?resident=` → `{ items: [{ id, created_at, text }] }` —
|
||||
последние 5 `done`-записей по резиденту (ILIKE), для кнопок-шаблонов.
|
||||
- `POST /api/farewells` `{ resident, topic?, source_feedback_ids[], template_id?, prompt?, ai_profile? }`
|
||||
|
||||
Reference in New Issue
Block a user