add location

This commit is contained in:
2026-09-18 16:01:02 +07:00
parent fc171dace5
commit 32191529a5
15 changed files with 106 additions and 21 deletions
+33 -6
View File
@@ -4404,6 +4404,7 @@ type AddGameReq struct {
StartAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_at,json=startAt,proto3" json:"start_at,omitempty"`
ScenarioId int32 `protobuf:"varint,4,opt,name=scenario_id,json=scenarioId,proto3" json:"scenario_id,omitempty"`
Format string `protobuf:"bytes,5,opt,name=format,proto3" json:"format,omitempty"`
Location string `protobuf:"bytes,6,opt,name=location,proto3" json:"location,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -4473,6 +4474,13 @@ func (x *AddGameReq) GetFormat() string {
return ""
}
func (x *AddGameReq) GetLocation() string {
if x != nil {
return x.Location
}
return ""
}
type AddGameRsp struct {
state protoimpl.MessageState `protogen:"open.v1"`
Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
@@ -4625,6 +4633,7 @@ type Game struct {
StartedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=started_at,json=startedAt,proto3,oneof" json:"started_at,omitempty"`
EndedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=ended_at,json=endedAt,proto3,oneof" json:"ended_at,omitempty"`
Format string `protobuf:"bytes,10,opt,name=format,proto3" json:"format,omitempty"`
Location string `protobuf:"bytes,11,opt,name=location,proto3" json:"location,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -4729,6 +4738,13 @@ func (x *Game) GetFormat() string {
return ""
}
func (x *Game) GetLocation() string {
if x != nil {
return x.Location
}
return ""
}
type ScreenState struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
@@ -7436,6 +7452,7 @@ type UpdateGameReq struct {
StartAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_at,json=startAt,proto3" json:"start_at,omitempty"`
ScenarioId int32 `protobuf:"varint,5,opt,name=scenario_id,json=scenarioId,proto3" json:"scenario_id,omitempty"`
Format string `protobuf:"bytes,6,opt,name=format,proto3" json:"format,omitempty"`
Location string `protobuf:"bytes,7,opt,name=location,proto3" json:"location,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -7512,6 +7529,13 @@ func (x *UpdateGameReq) GetFormat() string {
return ""
}
func (x *UpdateGameReq) GetLocation() string {
if x != nil {
return x.Location
}
return ""
}
type UpdateGameRsp struct {
state protoimpl.MessageState `protogen:"open.v1"`
Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
@@ -9513,7 +9537,7 @@ const file_main_proto_rawDesc = "" +
"\x02id\x18\x01 \x01(\x05R\x02id\"@\n" +
"\x18UploadScenarioArchiveRsp\x12\x14\n" +
"\x05error\x18\x01 \x01(\tR\x05error\x12\x0e\n" +
"\x02id\x18\x02 \x01(\x05R\x02id\"\xb2\x01\n" +
"\x02id\x18\x02 \x01(\x05R\x02id\"\xce\x01\n" +
"\n" +
"AddGameReq\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12 \n" +
@@ -9521,7 +9545,8 @@ const file_main_proto_rawDesc = "" +
"\bstart_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\astartAt\x12\x1f\n" +
"\vscenario_id\x18\x04 \x01(\x05R\n" +
"scenarioId\x12\x16\n" +
"\x06format\x18\x05 \x01(\tR\x06format\"2\n" +
"\x06format\x18\x05 \x01(\tR\x06format\x12\x1a\n" +
"\blocation\x18\x06 \x01(\tR\blocation\"2\n" +
"\n" +
"AddGameRsp\x12\x14\n" +
"\x05error\x18\x01 \x01(\tR\x05error\x12\x0e\n" +
@@ -9529,7 +9554,7 @@ const file_main_proto_rawDesc = "" +
"\vGetGamesReq\"_\n" +
"\vGetGamesRsp\x12\x14\n" +
"\x05error\x18\x01 \x01(\tR\x05error\x12:\n" +
"\x05games\x18\x02 \x03(\v2$.crabs.evening_detective_server.GameR\x05games\"\xcd\x03\n" +
"\x05games\x18\x02 \x03(\v2$.crabs.evening_detective_server.GameR\x05games\"\xe9\x03\n" +
"\x04Game\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x05R\x02id\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12 \n" +
@@ -9542,7 +9567,8 @@ const file_main_proto_rawDesc = "" +
"started_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampH\x00R\tstartedAt\x88\x01\x01\x12:\n" +
"\bended_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampH\x01R\aendedAt\x88\x01\x01\x12\x16\n" +
"\x06format\x18\n" +
" \x01(\tR\x06formatB\r\n" +
" \x01(\tR\x06format\x12\x1a\n" +
"\blocation\x18\v \x01(\tR\blocationB\r\n" +
"\v_started_atB\v\n" +
"\t_ended_at\"\xb6\x04\n" +
"\vScreenState\x12\x0e\n" +
@@ -9737,7 +9763,7 @@ const file_main_proto_rawDesc = "" +
"\x06status\x18\x02 \x01(\tR\x06status\"q\n" +
"\x15ModerateGameReviewRsp\x12\x14\n" +
"\x05error\x18\x01 \x01(\tR\x05error\x12B\n" +
"\x06review\x18\x02 \x01(\v2*.crabs.evening_detective_server.GameReviewR\x06review\"\xc5\x01\n" +
"\x06review\x18\x02 \x01(\v2*.crabs.evening_detective_server.GameReviewR\x06review\"\xe1\x01\n" +
"\rUpdateGameReq\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x05R\x02id\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12 \n" +
@@ -9745,7 +9771,8 @@ const file_main_proto_rawDesc = "" +
"\bstart_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\astartAt\x12\x1f\n" +
"\vscenario_id\x18\x05 \x01(\x05R\n" +
"scenarioId\x12\x16\n" +
"\x06format\x18\x06 \x01(\tR\x06format\"%\n" +
"\x06format\x18\x06 \x01(\tR\x06format\x12\x1a\n" +
"\blocation\x18\a \x01(\tR\blocation\"%\n" +
"\rUpdateGameRsp\x12\x14\n" +
"\x05error\x18\x01 \x01(\tR\x05error\"\x1e\n" +
"\fStartGameReq\x12\x0e\n" +