add diffectly

This commit is contained in:
2026-10-03 14:52:40 +07:00
parent 4631c443e0
commit 7d4361a315
13 changed files with 200 additions and 103 deletions
+39 -5
View File
@@ -2264,6 +2264,7 @@ type Scenario struct {
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"`
Difficulty string `protobuf:"bytes,13,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -2382,6 +2383,13 @@ func (x *Scenario) GetReviewsCount() int32 {
return 0
}
func (x *Scenario) GetDifficulty() string {
if x != nil {
return x.Difficulty
}
return ""
}
type Story struct {
state protoimpl.MessageState `protogen:"open.v1"`
Places []*Place `protobuf:"bytes,1,rep,name=places,proto3" json:"places,omitempty"`
@@ -6734,6 +6742,7 @@ type GameReview struct {
Status string `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
GameName string `protobuf:"bytes,9,opt,name=game_name,json=gameName,proto3" json:"game_name,omitempty"`
Difficulty int32 `protobuf:"varint,10,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -6831,6 +6840,13 @@ func (x *GameReview) GetGameName() string {
return ""
}
func (x *GameReview) GetDifficulty() int32 {
if x != nil {
return x.Difficulty
}
return 0
}
type CreateGameReviewReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
GameID int32 `protobuf:"varint,1,opt,name=gameID,proto3" json:"gameID,omitempty"`
@@ -6838,6 +6854,7 @@ type CreateGameReviewReq struct {
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
Rating int32 `protobuf:"varint,4,opt,name=rating,proto3" json:"rating,omitempty"`
Text string `protobuf:"bytes,5,opt,name=text,proto3" json:"text,omitempty"`
Difficulty int32 `protobuf:"varint,6,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -6907,6 +6924,13 @@ func (x *CreateGameReviewReq) GetText() string {
return ""
}
func (x *CreateGameReviewReq) GetDifficulty() int32 {
if x != nil {
return x.Difficulty
}
return 0
}
type CreateGameReviewRsp struct {
state protoimpl.MessageState `protogen:"open.v1"`
Review *GameReview `protobuf:"bytes,1,opt,name=review,proto3" json:"review,omitempty"`
@@ -9448,7 +9472,7 @@ const file_main_proto_rawDesc = "" +
"\x0eGetScenarioReq\x12\x0e\n" +
"\x02ID\x18\x01 \x01(\x05R\x02ID\"V\n" +
"\x0eGetScenarioRsp\x12D\n" +
"\bscenario\x18\x01 \x01(\v2(.crabs.evening_detective_server.ScenarioR\bscenario\"\x9e\x04\n" +
"\bscenario\x18\x01 \x01(\v2(.crabs.evening_detective_server.ScenarioR\bscenario\"\xbe\x04\n" +
"\bScenario\x12\x0e\n" +
"\x02ID\x18\x01 \x01(\x05R\x02ID\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12%\n" +
@@ -9464,7 +9488,10 @@ const file_main_proto_rawDesc = "" +
"\fpublished_at\x18\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" +
"\rreviews_count\x18\f \x01(\x05R\freviewsCount\x12\x1e\n" +
"\n" +
"difficulty\x18\r \x01(\tR\n" +
"difficultyB\x0e\n" +
"\f_descriptionB\b\n" +
"\x06_image\"\xcc\x02\n" +
"\x05Story\x12=\n" +
@@ -9753,7 +9780,7 @@ const file_main_proto_rawDesc = "" +
"\ractions_count\x18\x05 \x01(\x05R\factionsCount\"\xa4\x01\n" +
"\x11GetGameResultsRsp\x12M\n" +
"\tquestions\x18\x01 \x03(\v2/.crabs.evening_detective_server.ResultsQuestionR\tquestions\x12@\n" +
"\x05teams\x18\x02 \x03(\v2*.crabs.evening_detective_server.TeamResultR\x05teams\"\x85\x02\n" +
"\x05teams\x18\x02 \x03(\v2*.crabs.evening_detective_server.TeamResultR\x05teams\"\xa5\x02\n" +
"\n" +
"GameReview\x12\x0e\n" +
"\x02ID\x18\x01 \x01(\x05R\x02ID\x12\x16\n" +
@@ -9765,13 +9792,20 @@ const file_main_proto_rawDesc = "" +
"\x06status\x18\a \x01(\tR\x06status\x129\n" +
"\n" +
"created_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x1b\n" +
"\tgame_name\x18\t \x01(\tR\bgameName\"\x8d\x01\n" +
"\tgame_name\x18\t \x01(\tR\bgameName\x12\x1e\n" +
"\n" +
"difficulty\x18\n" +
" \x01(\x05R\n" +
"difficulty\"\xad\x01\n" +
"\x13CreateGameReviewReq\x12\x16\n" +
"\x06gameID\x18\x01 \x01(\x05R\x06gameID\x12\x16\n" +
"\x06teamID\x18\x02 \x01(\x05R\x06teamID\x12\x1a\n" +
"\bpassword\x18\x03 \x01(\tR\bpassword\x12\x16\n" +
"\x06rating\x18\x04 \x01(\x05R\x06rating\x12\x12\n" +
"\x04text\x18\x05 \x01(\tR\x04text\"Y\n" +
"\x04text\x18\x05 \x01(\tR\x04text\x12\x1e\n" +
"\n" +
"difficulty\x18\x06 \x01(\x05R\n" +
"difficulty\"Y\n" +
"\x13CreateGameReviewRsp\x12B\n" +
"\x06review\x18\x01 \x01(\v2*.crabs.evening_detective_server.GameReviewR\x06review\"+\n" +
"\x11GetGameReviewsReq\x12\x16\n" +