Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SearchRequest ¶
type SearchRequest struct { Plat uint `json:"plat"` Question string `json:"question"` Options []string `json:"options"` Type uint `json:"type"` }
SearchRequest 搜题的请求题
type SearchResponse ¶
type SearchResponse struct { Plat uint `json:"plat"` Question string `json:"question"` Options []string `json:"options"` Type uint `json:"type"` AnswerIndex []int `json:"answerIndex"` // 如果用户传了options 将会自动帮用户计算出答案的角标,依据Answer来计算的 Answer []string `json:"answer"` //最相似,最可能的答案->即moreAnswer中出现最多的答案 MoreAnswer [][]string `json:"moreAnswer"` // 所有接口聚合的答案 }
SearchResponse 搜题响应体
Click to show internal directories.
Click to hide internal directories.