-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathtypes.go
50 lines (44 loc) · 899 Bytes
/
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
package main
//PageHeader ..
type PageHeader struct {
Title string
Description string
}
// UserPageData ...
type UserPageData struct {
PageHeader
Users []User
}
// SubscriberPageData ...
type SubscriberPageData struct {
PageHeader
Subscribed bool
Name string
Email string
}
// WikiArticle ...
type WikiArticle struct {
UUID string
Subject string
Content string
}
// WikiPage ...
type WikiPage struct {
PageHeader
WikiArticles []WikiArticle
SelectedArticle WikiArticle
}
// User ...
type User struct {
ID int
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Company string `json:"company"`
Title string `json:"title"`
Email string `json:"email"`
Phone string `json:"phone"`
DOB string `json:"dob"`
SSN string `json:"ssn"`
Salary int `json:"salary"`
Admin string `json:"admin"`
}