-
Notifications
You must be signed in to change notification settings - Fork 0
/
definitions.go
65 lines (59 loc) · 1.49 KB
/
definitions.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
package main
type Author struct {
Index int
FamilyName string
GivenName string
IsUser bool
}
type Paper struct {
Index int
Journal string
Year int
Title string
Doi string
Citation int
IndependentCitation int
Authors []Author
Mtid int
Sjr string
}
type PaperResponse struct {
Papers []Paper
Time int64
}
type JournalResponse struct {
Content struct {
Title string `json:"title"`
} `json:"content"`
}
type AuthorShip struct {
FamilyName string `json:"familyName"`
GivenName string `json:"givenName"`
Author struct {
Mtid int `json:"mtid"`
} `json:"author"`
Type struct {
Mtid int `json:"mtid"`
} `json:"type"`
}
type MtmtResponse struct {
Content []struct {
Mtid int `json:"mtid"`
Title string `json:"title"`
Year int `json:"publishedYear"`
Citation int `json:"citationCount"`
IndependentCitation int `json:"independentCitationCount"`
Authorships []AuthorShip `json:"authorships"`
Sjr string `json:"ratingsForSort"`
Identifiers []struct {
RealUrl string `json:"realUrl"`
Label string `json:"label"`
Source struct {
Label string `json:"label"`
} `json:"source"`
} `json:"identifiers"`
Journal struct {
Link string `json:"link"`
} `json:"journal"`
} `json:"content"`
}