-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodel.go
60 lines (51 loc) · 1.35 KB
/
model.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
package main
type (
ReverseSearchResponse struct {
ExactPost Post `json:"exactPost`
SimilarPosts []SimilarPost `json:"similarPosts`
}
SimilarPost struct {
Distance float64 `json:"distance"`
Post Post `json:"post"`
}
Post struct {
Version int `json:"version"`
Id int `json:"id"`
Safety string `json:"safety"`
Tags []interface{} `json:"tags"`
ThumbnailUrl string `json:"thumbnailUrl"`
FavoriteCount int `json:"favoriteCount"`
}
Tag struct {
Version int `json:"version"`
Names []string `json:"names"`
Category string `json:"category"`
Implications []Tag `json:"implications"`
Suggestions []Tag `json:"suggestions"`
Usages int `json:"usages"`
Description string `json:"description"`
}
ImplicationUpdateRequest struct {
Version int `json:"version"`
Implications []string `json:"implications"`
}
BatchUploadFolder struct {
Name string
Number int
Path string
}
ListResponse struct {
Query string `json:"query"`
Offset int `json:"offset"`
Limit int `json:"limit"`
Total int `json:"total"`
}
ListPostResponse struct {
ListResponse
Results []Post `json:"results"`
}
ListTagResponse struct {
ListResponse
Results []Tag `json:"results"`
}
)