diff --git a/elastic/indexes.py b/elastic/indexes.py new file mode 100644 index 0000000..67b7bd5 --- /dev/null +++ b/elastic/indexes.py @@ -0,0 +1,3 @@ +INDEX_NAME = "wordsearch266666" +ACHIEVEMENT_INDEX_NAME = INDEX_NAME +USER_INDEX_NAME = INDEX_NAME diff --git a/elastic/templates/elastic/manage.html b/elastic/templates/elastic/manage.html new file mode 100644 index 0000000..9a969a1 --- /dev/null +++ b/elastic/templates/elastic/manage.html @@ -0,0 +1,176 @@ + + +
+ +仅管理员可见。可查看、编辑、删除所有记录。
+| ID | +图片 | +数据 | +作者 | +操作 | +
|---|---|---|---|---|
| {{ it._id }} | +
+ {% if it.image %}
+ /media/{{ it.image }}
+ {% endif %}
+ |
+
+ {{ it.data|safe }}
+ |
+ {{ it.writer_id }} | ++ + + | +
选择图片后上传,服务端调用大模型解析为可编辑的 JSON,再确认入库。
+ + + +