This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtypes.go
62 lines (56 loc) · 1.64 KB
/
types.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
53
54
55
56
57
58
59
60
61
62
package dsb
// Account stores login information
type Account struct {
username string
password string
BundleID string
Webservice string
AppVersion string
Lang string
Device string
OsVersion string
UserAgent string
}
// Response contains all of the information
type Response struct {
StatusCode int `json:"Resultcode"`
Status string `json:"ResultStatusInfo"`
StartIndex int `json:"StartIndex"`
Categorys []Category `json:"ResultMenuItems"`
ChannelType int `json:"ChannelType"`
MandantID string `json:"MandantId"`
}
// Category contains Menus
type Category struct {
Index int `json:"Index"`
Icon string `json:"IconLink"`
Title string `json:"Title"`
Menus []Menu `json:"Childs"`
Method string `json:"MethodName"`
NewCount int `json:"NewCount"`
SaveLastState bool `json:"SaveLastState"`
}
// Menu contains MenusItems
type Menu struct {
Index int `json:"Index"`
Icon string `json:"IconLink"`
Title string `json:"Title"`
Root MenuItem `json:"Root"`
//Childs []Menu `json:"Childs"`
Method string `json:"MethodName"`
NewCount int `json:"NewCount"`
SaveLastState bool `json:"SaveLastState"`
}
// MenuItem can contain more MenuItems
type MenuItem struct {
ID string `json:"Id"`
Date string `json:"Date"`
Title string `json:"Title"`
Detail string `json:"Detail"`
Tags string `json:"Tags"`
ConType int `json:"ConType"`
Prio int `json:"Prio"`
Index int `json:"Index"`
Childs []MenuItem `json:"Childs"`
Preview string `json:"Preview"`
}