-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtypes.go
More file actions
48 lines (42 loc) · 1.74 KB
/
types.go
File metadata and controls
48 lines (42 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package main
type Intent struct {
Name string `json:"name,omitempty"`
Confidence float64 `json:"confidence,omitempty"`
}
type BehaviorParas struct {
UtilityType string `json:"utility_type,omitempty"`
Time []string `json:"time,omitempty"`
Txt string `json:"txt,omitempty"`
Url string `json:"url,omitempty"`
PreAnimation string `json:"pre_animation,omitempty"`
PostAnimation string `json:"post_animation,omitempty"`
PostBehavior string `json:"post_behavior,omitempty"`
RecBehavior string `json:"rec_behavior,omitempty"`
BehaviorParas *BehaviorParas `json:"behavior_paras,omitempty"`
Sentiment string `json:"sentiment,omitempty"`
Listen int `json:"listen,omitempty"`
AnimationName string `json:"animation_name,omitempty"`
}
type QueryResult struct {
ResultCode string `json:"resultCode,omitempty"`
QueryText string `json:"queryText,omitempty"`
Intent *Intent `json:"intent,omitempty"`
RecBehavior string `json:"rec_behavior,omitempty"`
BehaviorParas *BehaviorParas `json:"behavior_paras,omitempty"`
}
type QueryResponse struct {
QueryId string `json:"queryId,omitempty"`
QueryResult *QueryResult `json:"queryResult,omitempty"`
LanguageCode string `json:"languageCode,omitempty"`
Index int `json:"index,omitempty"`
}
type TokenResponse struct {
AccessToken string `json:"access_token,omitempty"`
ExpireIn int `json:"expire_in,omitempty"`
Type string `json:"type,omitempty"`
}
type EmoSpeechResponse struct {
Code int64 `json:"code"`
Errmessage string `json:"errmessage"`
Url string `json:"url"`
}