-
Notifications
You must be signed in to change notification settings - Fork 156
/
requestWorkbench.go
52 lines (46 loc) · 1.53 KB
/
requestWorkbench.go
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
49
50
51
52
package request
type RequestSetWorkbenchTemplate struct {
AgentID int `json:"agentid"`
Type string `json:"type"`
KeyData WorkBenchKeyData `json:"keydata"`
Image WorkBenchImage `json:"image,omitempty"`
List WorkBenchListItem `json:"list,omitempty"`
WebView WorkBenchWebView `json:"webview,omitempty"`
ReplaceUserData bool `json:"replace_user_data"`
}
type RequestSetWorkBenchData struct {
AgentID int `json:"agentid"`
UserID string `json:"userid"`
Type string `json:"type"`
KeyData WorkBenchKeyData `json:"keydata,omitempty"`
Image WorkBenchImage `json:"image,omitempty"`
List WorkBenchListData `json:"list,omitempty"`
WebView WorkBenchWebView `json:"webview,omitempty"`
}
type WorkBenchKeyData struct {
Items []WorkBenchKeyDataItem `json:"items"`
}
type WorkBenchKeyDataItem struct {
Key string `json:"key"`
Data string `json:"data"`
JumpUrl string `json:"jump_url"`
PagePath string `json:"pagepath"`
}
type WorkBenchImage struct {
Url string `json:"url"`
JumpUrl string `json:"jump_url"`
PagePath string `json:"pagepath"`
}
type WorkBenchListData struct {
Items []WorkBenchListItem `json:"items"`
}
type WorkBenchListItem struct {
Title string `json:"title"`
JumpUrl string `json:"jump_url"`
PagePath string `json:"pagepath"`
}
type WorkBenchWebView struct {
Url string `json:"url"`
JumpUrl string `json:"jump_url"`
PagePath string `json:"pagepath"`
}