-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservice_types.go
86 lines (73 loc) · 1.85 KB
/
service_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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
package sozlukcli
// CheckResponse :
type CheckResponse struct {
Success bool `json:"success"`
Data *CheckData `json:"data"`
}
// CheckData :
type CheckData struct {
IsAlive bool `json: "isAlive"`
User_Id string `json: "user_id"`
Slug string `json: "slug"`
Unread int `json: "unread`
}
// SearchResponse :
type SearchResponse struct {
Success bool `json:"success"`
Data *SearchData `json:"data"`
}
// SearchData :
type SearchData struct {
Topics []SearchDataTopics `json:"topics"`
Users []SearchDataUsers `json:"users"`
}
// SearchDataTopics :
type SearchDataTopics struct {
ID int `json:"id"`
Slug string `json:"slug"`
Title string `json:"title"`
}
// SearchDataUsers :
type SearchDataUsers struct {
Username string `json:"username"`
Slug string `json:"slug"`
}
// EntryCreateResponse :
type EntryCreateResponse struct {
Success bool `json:"success"`
Data *EntryCreateData `json:"data"`
Message string `json:"message"`
}
// EntryCreateData :
type EntryCreateData struct {
ID int `json:"id"`
}
// EntryDeleteResponse :
type EntryDeleteResponse struct {
Success bool `json:"success"`
}
// TopicCreateResponse :
type TopicCreateResponse struct {
Success bool `json:"success"`
ID int `json:"entry_id"`
Message string `json:"message"`
}
// SessionCreateResponse :
type SessionCreateResponse struct {
Success bool `json:"success"`
Data *SessionCreateData `json:"data"`
}
// SessionCreateData :
type SessionCreateData struct {
ID string `json:"user_id"`
Email string `json:"email"`
Username string `json:"username"`
Token string `json:"token"`
Slug string `json:"slug"`
Authority int `json:"authority"`
Unread int `json:"unread"`
}
// SessionDeleteResponse :
type SessionDeleteResponse struct {
Success bool `json:"success"`
}