-
Notifications
You must be signed in to change notification settings - Fork 2
/
product_review_list_model.go
85 lines (75 loc) · 2.72 KB
/
product_review_list_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
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
package model_public
type ImageAttachment struct {
AttachmentID string `json:"attachmentID"`
ImageThumbnailURL string `json:"imageThumbnailUrl"`
ImageURL string `json:"imageUrl"`
Typename string `json:"__typename"`
}
type ReviewResponse struct {
Message string `json:"message"`
CreateTime string `json:"createTime"`
Typename string `json:"__typename"`
}
type ReviewStats struct {
Key string `json:"key"`
Formatted string `json:"formatted"`
Count int `json:"count"`
Typename string `json:"__typename"`
}
type Shop struct {
ShopID string `json:"shopID"`
Name string `json:"name"`
URL string `json:"url"`
Image string `json:"image"`
Typename string `json:"__typename"`
}
type User struct {
UserID string `json:"userID"`
FullName string `json:"fullName"`
Image string `json:"image"`
URL string `json:"url"`
Typename string `json:"__typename"`
}
type LikeDislike struct {
TotalLike int `json:"totalLike"`
LikeStatus int `json:"likeStatus"`
Typename string `json:"__typename"`
}
type Review struct {
ID string `json:"id"`
VariantName string `json:"variantName"`
Message string `json:"message"`
ProductRating int `json:"productRating"`
ReviewCreateTime string `json:"reviewCreateTime"`
ReviewCreateTimestamp string `json:"reviewCreateTimestamp"`
IsReportable bool `json:"isReportable"`
IsAnonymous bool `json:"isAnonymous"`
ImageAttachments []ImageAttachment `json:"imageAttachments"`
VideoAttachments []interface{} `json:"videoAttachments"`
ReviewResponse ReviewResponse `json:"reviewResponse"`
User User `json:"user"`
LikeDislike LikeDislike `json:"likeDislike"`
Stats []ReviewStats `json:"stats"`
BadRatingReasonFmt string `json:"badRatingReasonFmt"`
Typename string `json:"__typename"`
}
type ProductrevGetProductReviewList struct {
ProductID string `json:"productID"`
List []Review `json:"list"`
Shop Shop `json:"shop"`
HasNext bool `json:"hasNext"`
TotalReviews int `json:"totalReviews"`
Typename string `json:"__typename"`
}
type ProductReviewListVar struct {
ProductID string `json:"productID"`
Page int `json:"page"`
Limit int `json:"limit"`
SortBy string `json:"sortBy"`
FilterBy string `json:"filterBy"`
}
type ProductReviewListResp struct {
Data struct {
ProductrevGetProductReviewList ProductrevGetProductReviewList `json:"productrevGetProductReviewList"`
} `json:"data"`
}