@devline-smart-taxi/common 2.3.75 → 2.3.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/proto/rating.proto +45 -0
- package/package.json +1 -1
package/dist/proto/rating.proto
CHANGED
|
@@ -10,6 +10,7 @@ import "common.proto";
|
|
|
10
10
|
service RatingService {
|
|
11
11
|
rpc UpsertRating (UpsertRatingRequest) returns (RatingResponse);
|
|
12
12
|
rpc GetAverageRating (common.NoParams) returns (AverageRatingResponse);
|
|
13
|
+
rpc GetDriverRatingDetails (GetDriverRatingDetailsRequest) returns (DriverRatingDetailsResponse);
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
// ==========================================
|
|
@@ -22,6 +23,10 @@ message UpsertRatingRequest {
|
|
|
22
23
|
optional string userComment = 4;
|
|
23
24
|
}
|
|
24
25
|
|
|
26
|
+
message GetDriverRatingDetailsRequest {
|
|
27
|
+
string period = 1;
|
|
28
|
+
optional string anchorDate = 2;
|
|
29
|
+
}
|
|
25
30
|
|
|
26
31
|
// ==========================================
|
|
27
32
|
// 4. RESPONSES
|
|
@@ -58,3 +63,43 @@ message AverageRatingResponse {
|
|
|
58
63
|
string message = 2;
|
|
59
64
|
AverageRatingData data = 3;
|
|
60
65
|
}
|
|
66
|
+
|
|
67
|
+
message DriverRatingSummary {
|
|
68
|
+
float currentAverage = 1;
|
|
69
|
+
int32 totalRatings = 2;
|
|
70
|
+
float periodAverage = 3;
|
|
71
|
+
int32 periodRatings = 4;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
message DriverRatingTrendPoint {
|
|
75
|
+
string startAt = 1;
|
|
76
|
+
string label = 2;
|
|
77
|
+
float averageRating = 3;
|
|
78
|
+
int32 totalRatings = 4;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
message DriverRatingDistributionPoint {
|
|
82
|
+
int32 stars = 1;
|
|
83
|
+
int32 count = 2;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
message DriverRatingNavigation {
|
|
87
|
+
string prevAnchorDate = 1;
|
|
88
|
+
string nextAnchorDate = 2;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
message DriverRatingDetailsData {
|
|
92
|
+
string userId = 1;
|
|
93
|
+
string period = 2;
|
|
94
|
+
string anchorDate = 3;
|
|
95
|
+
DriverRatingNavigation navigation = 4;
|
|
96
|
+
DriverRatingSummary summary = 5;
|
|
97
|
+
repeated DriverRatingTrendPoint trend = 6;
|
|
98
|
+
repeated DriverRatingDistributionPoint distribution = 7;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
message DriverRatingDetailsResponse {
|
|
102
|
+
int32 statusCode = 1;
|
|
103
|
+
string message = 2;
|
|
104
|
+
DriverRatingDetailsData data = 3;
|
|
105
|
+
}
|