This commit is contained in:
2026-09-18 02:46:48 +07:00
parent e9e35c60d5
commit d255860b76
9 changed files with 97 additions and 33 deletions
+20 -2
View File
@@ -2338,6 +2338,8 @@ type Scenario struct {
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
PublishedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=published_at,json=publishedAt,proto3" json:"published_at,omitempty"`
AverageRating float64 `protobuf:"fixed64,11,opt,name=average_rating,json=averageRating,proto3" json:"average_rating,omitempty"`
ReviewsCount int32 `protobuf:"varint,12,opt,name=reviews_count,json=reviewsCount,proto3" json:"reviews_count,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -2442,6 +2444,20 @@ func (x *Scenario) GetPublishedAt() *timestamppb.Timestamp {
return nil
}
func (x *Scenario) GetAverageRating() float64 {
if x != nil {
return x.AverageRating
}
return 0
}
func (x *Scenario) GetReviewsCount() int32 {
if x != nil {
return x.ReviewsCount
}
return 0
}
type Story struct {
state protoimpl.MessageState `protogen:"open.v1"`
Conclusion *Conclusion `protobuf:"bytes,5,opt,name=conclusion,proto3" json:"conclusion,omitempty"` // Только в полном сценарии, игрокам не передаётся.
@@ -9272,7 +9288,7 @@ const file_main_proto_rawDesc = "" +
"\x02id\x18\x01 \x01(\x05R\x02id\"l\n" +
"\x0eGetScenarioRsp\x12\x14\n" +
"\x05error\x18\x01 \x01(\tR\x05error\x12D\n" +
"\bscenario\x18\x02 \x01(\v2(.crabs.evening_detective_server.ScenarioR\bscenario\"\xd2\x03\n" +
"\bscenario\x18\x02 \x01(\v2(.crabs.evening_detective_server.ScenarioR\bscenario\"\x9e\x04\n" +
"\bScenario\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x05R\x02id\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12%\n" +
@@ -9286,7 +9302,9 @@ const file_main_proto_rawDesc = "" +
"\n" +
"created_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x12=\n" +
"\fpublished_at\x18\n" +
" \x01(\v2\x1a.google.protobuf.TimestampR\vpublishedAtB\x0e\n" +
" \x01(\v2\x1a.google.protobuf.TimestampR\vpublishedAt\x12%\n" +
"\x0eaverage_rating\x18\v \x01(\x01R\raverageRating\x12#\n" +
"\rreviews_count\x18\f \x01(\x05R\freviewsCountB\x0e\n" +
"\f_descriptionB\b\n" +
"\x06_image\"\xcc\x02\n" +
"\x05Story\x12J\n" +