Class WelcomeContent
java.lang.Object
com.bytedesk.core.base.BaseContent
com.bytedesk.core.message.content.WelcomeContent
- All Implemented Interfaces:
Serializable
欢迎消息内容类
使用说明:
1. 服务端在路由策略(Agent/Robot/Workgroup)中构建 WelcomeContent 并序列化为 JSON 写入 MessageEntity.content
2. 前端收到 type=WELCOME 的消息后优先尝试 JSON.parse(content) 解析为该结构;若解析失败则按旧版纯文本展示
3. faqs 字段为精简 FAQ 数据,不依赖复杂对象,避免前端反序列化失败;kbUid 指向关联知识库
4. 兼容:旧历史消息只有 content(纯字符串),前端自动回退
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate List<WelcomeContent.QA>private Stringprivate static final long -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.bytedesk.core.base.BaseContent
fromJson, toJson
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
faqs
-
kbUid
-
-
Constructor Details
-
WelcomeContent
public WelcomeContent()
-