refactor: kb & station & terminal
This commit is contained in:
@@ -1,39 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| AI提示词占位符
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 以下占位符由HMI端在运行时替换,KMS仅存储含占位符的原始模板
|
||||
|
|
||||
*/
|
||||
|
||||
'variables' => [
|
||||
[
|
||||
'name' => 'station_id',
|
||||
'label' => '线站ID',
|
||||
'description' => '终端所在的线站标识,由HMI从 /config 接口获取',
|
||||
'example' => 'BL02U1',
|
||||
'source' => 'KMS /config',
|
||||
'replaced_by' => 'HMI',
|
||||
],
|
||||
[
|
||||
'name' => 'user',
|
||||
'label' => '用户名称',
|
||||
'description' => '当前登录用户的姓名,由HMI从登录信息或固定值获取',
|
||||
'example' => '张三',
|
||||
'source' => '登录信息或固定值',
|
||||
'replaced_by' => 'HMI',
|
||||
],
|
||||
[
|
||||
'name' => 'time',
|
||||
'label' => '当前时间',
|
||||
'description' => '当前的日期和时间,由HMI通过 QDateTime::currentDateTime() 获取',
|
||||
'example' => '2026-03-23 14:30:00',
|
||||
'source' => 'QDateTime::currentDateTime()',
|
||||
'replaced_by' => 'HMI',
|
||||
],
|
||||
],
|
||||
];
|
||||
@@ -141,10 +141,10 @@ return [
|
||||
'key' => env('MEILISEARCH_KEY'),
|
||||
'index-settings' => [
|
||||
'documents' => [
|
||||
'filterableAttributes' => ['type', 'group_id', 'knowledge_base_id', 'uploaded_by', 'conversion_status'],
|
||||
'filterableAttributes' => ['knowledge_base_id', 'uploaded_by', 'conversion_status'],
|
||||
'sortableAttributes' => ['created_at', 'title', 'updated_at'],
|
||||
'searchableAttributes' => ['title', 'description', 'markdown_content'],
|
||||
'displayedAttributes' => ['id', 'title', 'description', 'type', 'group_id', 'knowledge_base_id', 'uploaded_by', 'created_at', 'updated_at'],
|
||||
'displayedAttributes' => ['id', 'title', 'description', 'knowledge_base_id', 'uploaded_by', 'created_at', 'updated_at'],
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user