Documentation ¶
Index ¶
- func BuildTable(name string, dataResource []map[string]interface{}, data ComputeData) string
- func DecodeJSON(str string, v interface{}) error
- func GetDisplayKeys() []string
- func GetKeyName(key string) string
- func JSONStr(v interface{}) string
- func ReqStr() string
- func SaveReqStr() string
- func SaveTable(filename string, dataResource []map[string]interface{}) error
- type ComputeData
- type Config
- type InputStruct
- type One
- type OneList
- type Piao
- type ReqQuery
- type RequestData
- type ResData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildTable ¶
func BuildTable(name string, dataResource []map[string]interface{}, data ComputeData) string
func DecodeJSON ¶
func GetDisplayKeys ¶
func GetDisplayKeys() []string
func GetKeyName ¶
func SaveReqStr ¶
func SaveReqStr() string
Types ¶
type ComputeData ¶
type ComputeData struct { Huanshou [][]float64 `toml:"huanshou"` Liangbi [][]float64 `toml:"liangbi"` Jingzhanzuo [][]float64 `toml:"jingzhanzuo"` Weipipei [][]float64 `toml:"weipipei"` Jingjiajine [][]float64 `toml:"jingjiajine"` Zhuli [][]float64 `toml:"zhuli"` Zhangfu [][]float64 `toml:"zhangfu"` }
type Config ¶
type Config struct {
Input InputStruct
}
type InputStruct ¶
type InputStruct struct { Cookie string `toml:"Cookie"` Reqs []ReqQuery `toml:"reqs"` Result ReqQuery `toml:"result"` ComputeData ComputeData `toml:"computedata"` }
type Piao ¶
type Piao struct { Code string Gupiaojiancheng string Zuixinzhangdiefu float64 Huanshou float64 Liangbi float64 Jingzhanzuo float64 Weipipei float64 Jingjiajine float64 Zhulizengcang float64 Zhangfu float64 Weibi float64 Jiban float64 Shijian string HuanshouScore float64 LiangbiScore float64 JingzhanzuoScore float64 WeipipeiScore float64 JingjiajineScore float64 ZhulizengcangScore float64 ZhangfuScore float64 TotalScore float64 }
func BuildPiaos ¶
func ComputePiaos ¶
func ComputePiaos(piaos []*Piao, computeData ComputeData) []*Piao
func (*Piao) GetTotalScore ¶
type RequestData ¶
type RequestData struct { Question string `json:"question"` Perpage int `json:"perpage"` Page int `json:"page"` SecondaryIntent string `json:"secondary_intent"` LogInfo string `json:"log_info"` Iwcpro int `json:"iwcpro"` Source string `json:"source"` Version string `json:"version"` QueryArea string `json:"query_area"` BlockList string `json:"block_list"` AddInfo string `json:"add_info"` }
type ResData ¶
type ResData struct { StatusCode int `json:"status_code"` Data struct { Answer []struct { Txt []struct { Content struct { Components []struct { Data struct { Datas []map[string]interface{} `json:"datas"` } `json:"data"` } `json:"components"` } `json:"content"` } `json:"txt"` } `json:"answer"` } `json:"data"` }
Click to show internal directories.
Click to hide internal directories.