19 lines
433 B
Go
Raw Normal View History

2024-11-06 09:16:18 +08:00
package errcode
const (
ErrNoContent = ErrNlp + iota
2024-11-16 02:38:34 +08:00
ErrNoDocFound
2024-11-18 00:39:36 +08:00
ErrPythonServierDown
2024-11-06 09:16:18 +08:00
)
func NlpMsgInit(m msg) {
m[ErrNoContent] = "内容为空"
2024-11-16 02:38:34 +08:00
m[ErrNoDocFound] = "没有找到相关文档"
}
func NlpMsgUserInit(m msg) {
m[ErrNoContent] = "请输入内容"
2024-11-18 00:39:36 +08:00
m[ErrNoDocFound] = "小护没有在知识库中找到相关文档。😿"
m[ErrPythonServierDown] = "小护的🐍python服务挂了请稍后再试。😿"
2024-11-06 09:16:18 +08:00
}