model

package
v0.1.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 0 Imported by: 0

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 搜题响应体

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL