|
@@ -14,8 +14,13 @@ type FindAnswerReq {
|
|
type RecommendAnswerReq {
|
|
type RecommendAnswerReq {
|
|
Question string `json:"question"`
|
|
Question string `json:"question"`
|
|
RobotEntId string `header:"entId"`
|
|
RobotEntId string `header:"entId"`
|
|
- Type int64 `json:"type"` //1 文字 2 语音
|
|
|
|
- ReqSource int64 `json:"reqSource"` //0 客服端请求 1 用户端请求
|
|
|
|
|
|
+ Type int64 `json:"type"` //1 文字 2 语音
|
|
|
|
+}
|
|
|
|
+type GuessToAskReq {
|
|
|
|
+ Question string `json:"question"`
|
|
|
|
+ EntId string `json:"entId"`
|
|
|
|
+ Type int64 `json:"type"` //1 文字 2 语音
|
|
|
|
+ ReqSource int64 `json:"reqSource"` // 1
|
|
}
|
|
}
|
|
|
|
|
|
type ListReq {
|
|
type ListReq {
|
|
@@ -89,6 +94,8 @@ service knowledge-api {
|
|
post /knowledge/findAnswer (FindAnswerReq) returns (CommonRes);
|
|
post /knowledge/findAnswer (FindAnswerReq) returns (CommonRes);
|
|
@handler recommendAnswer
|
|
@handler recommendAnswer
|
|
post /knowledge/recommendAnswer (RecommendAnswerReq) returns (CommonRes);
|
|
post /knowledge/recommendAnswer (RecommendAnswerReq) returns (CommonRes);
|
|
|
|
+ @handler guessToAsk
|
|
|
|
+ post /knowledge/guessToAsk (GuessToAskReq) returns (CommonRes);
|
|
@handler commonPhrasesAddOrUpdate
|
|
@handler commonPhrasesAddOrUpdate
|
|
post /knowledge/commonPhrase/commonPhrasesAddOrUpdate (CommonPhrasesAddReq) returns (CommonRes);
|
|
post /knowledge/commonPhrase/commonPhrasesAddOrUpdate (CommonPhrasesAddReq) returns (CommonRes);
|
|
@handler commonPhrasesInfo
|
|
@handler commonPhrasesInfo
|