Documentation
¶
Overview ¶
web weixin client
Index ¶
Constants ¶
View Source
const ( //EmoticonQuest 颜文字指令关键词 EmoticonQuest = "颜文字" //LoveWordsQuest 情话指令关键词 LoveWordsQuest = "lovewords" )
View Source
const (
//Version 当前版本
Version = "0.1.1"
)
Variables ¶
This section is empty.
Functions ¶
func SimpleHTTPPost ¶
SimpleHTTPPost simple post json func
Types ¶
type ServiceError ¶
type ServiceError struct {
Msg string
}
ServiceError 自定义错误
func (*ServiceError) Error ¶
func (e *ServiceError) Error() string
type TuringAPIRequest ¶
type TuringAPIRequest struct {
ReqType int16 `json:"reqType"`
Perception *turingPerception `json:"perception"`
UserInfo *turingUserInfo `json:"userInfo"`
}
TuringAPIRequest 图灵api请求结构体
type TuringAPIResponse ¶
type TuringAPIResponse struct {
Intent *turingAPIIntent `json:"intent"`
Results []turingAPIResult `json:"results"`
}
TuringAPIResponse 图灵api返回结构体
Click to show internal directories.
Click to hide internal directories.