add places operations

This commit is contained in:
2026-07-14 01:25:57 +07:00
parent 2b11c49b3c
commit 7a657926f1
12 changed files with 502 additions and 175 deletions
+49 -22
View File
@@ -2259,7 +2259,8 @@ func (x *DeleteScenarioRsp) GetError() string {
type AddScenarioPlaceReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Place *Place `protobuf:"bytes,1,opt,name=place,proto3" json:"place,omitempty"`
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Place *Place `protobuf:"bytes,2,opt,name=place,proto3" json:"place,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -2294,6 +2295,13 @@ func (*AddScenarioPlaceReq) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{44}
}
func (x *AddScenarioPlaceReq) GetId() int32 {
if x != nil {
return x.Id
}
return 0
}
func (x *AddScenarioPlaceReq) GetPlace() *Place {
if x != nil {
return x.Place
@@ -2347,8 +2355,9 @@ func (x *AddScenarioPlaceRsp) GetError() string {
type UpdateScenarioPlaceReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
Place *Place `protobuf:"bytes,2,opt,name=place,proto3" json:"place,omitempty"`
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
Place *Place `protobuf:"bytes,3,opt,name=place,proto3" json:"place,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -2383,6 +2392,13 @@ func (*UpdateScenarioPlaceReq) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{46}
}
func (x *UpdateScenarioPlaceReq) GetId() int32 {
if x != nil {
return x.Id
}
return 0
}
func (x *UpdateScenarioPlaceReq) GetCode() string {
if x != nil {
return x.Code
@@ -2443,7 +2459,8 @@ func (x *UpdateScenarioPlaceRsp) GetError() string {
type DeleteScenarioPlaceReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -2478,6 +2495,13 @@ func (*DeleteScenarioPlaceReq) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{48}
}
func (x *DeleteScenarioPlaceReq) GetId() int32 {
if x != nil {
return x.Id
}
return 0
}
func (x *DeleteScenarioPlaceReq) GetCode() string {
if x != nil {
return x.Code
@@ -2667,20 +2691,23 @@ const file_main_proto_rawDesc = "" +
"\x11DeleteScenarioReq\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x05R\x02id\")\n" +
"\x11DeleteScenarioRsp\x12\x14\n" +
"\x05error\x18\x01 \x01(\tR\x05error\"R\n" +
"\x13AddScenarioPlaceReq\x12;\n" +
"\x05place\x18\x01 \x01(\v2%.crabs.evening_detective_server.PlaceR\x05place\"+\n" +
"\x05error\x18\x01 \x01(\tR\x05error\"b\n" +
"\x13AddScenarioPlaceReq\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x05R\x02id\x12;\n" +
"\x05place\x18\x02 \x01(\v2%.crabs.evening_detective_server.PlaceR\x05place\"+\n" +
"\x13AddScenarioPlaceRsp\x12\x14\n" +
"\x05error\x18\x01 \x01(\tR\x05error\"i\n" +
"\x16UpdateScenarioPlaceReq\x12\x12\n" +
"\x04code\x18\x01 \x01(\tR\x04code\x12;\n" +
"\x05place\x18\x02 \x01(\v2%.crabs.evening_detective_server.PlaceR\x05place\".\n" +
"\x05error\x18\x01 \x01(\tR\x05error\"y\n" +
"\x16UpdateScenarioPlaceReq\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x05R\x02id\x12\x12\n" +
"\x04code\x18\x02 \x01(\tR\x04code\x12;\n" +
"\x05place\x18\x03 \x01(\v2%.crabs.evening_detective_server.PlaceR\x05place\".\n" +
"\x16UpdateScenarioPlaceRsp\x12\x14\n" +
"\x05error\x18\x01 \x01(\tR\x05error\",\n" +
"\x16DeleteScenarioPlaceReq\x12\x12\n" +
"\x04code\x18\x01 \x01(\tR\x04code\".\n" +
"\x05error\x18\x01 \x01(\tR\x05error\"<\n" +
"\x16DeleteScenarioPlaceReq\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x05R\x02id\x12\x12\n" +
"\x04code\x18\x02 \x01(\tR\x04code\".\n" +
"\x16DeleteScenarioPlaceRsp\x12\x14\n" +
"\x05error\x18\x01 \x01(\tR\x05error2\x8c%\n" +
"\x05error\x18\x01 \x01(\tR\x05error2\x9b%\n" +
"\x16EveningDetectiveServer\x12\xa6\x01\n" +
"\x04Ping\x12'.crabs.evening_detective_server.PingReq\x1a'.crabs.evening_detective_server.PingRsp\"L\x92A3\x12)Проверить доступностьb\x06\n" +
"\x04\n" +
@@ -2733,13 +2760,13 @@ const file_main_proto_rawDesc = "" +
"\x0eUpdateScenario\x121.crabs.evening_detective_server.UpdateScenarioReq\x1a1.crabs.evening_detective_server.UpdateScenarioRsp\"`\x92A?\n" +
"\x10Сценарии\x12+Редактировать сценарий\x82\xd3\xe4\x93\x02\x18:\x01*\x1a\x13/api/scenarios/{id}\x12\xc9\x01\n" +
"\x0eDeleteScenario\x121.crabs.evening_detective_server.DeleteScenarioReq\x1a1.crabs.evening_detective_server.DeleteScenarioRsp\"Q\x92A3\n" +
"\x10Сценарии\x12\x1fУдалить сценарий\x82\xd3\xe4\x93\x02\x15*\x13/api/scenarios/{id}\x12\xea\x01\n" +
"\x10AddScenarioPlace\x123.crabs.evening_detective_server.AddScenarioPlaceReq\x1a3.crabs.evening_detective_server.AddScenarioPlaceRsp\"l\x92AI\n" +
"\x1bТочки сценария\x12*Создать точку сценария\x82\xd3\xe4\x93\x02\x1a:\x01*\"\x15/api/scenarios/places\x12\xfc\x01\n" +
"\x13UpdateScenarioPlace\x126.crabs.evening_detective_server.UpdateScenarioPlaceReq\x1a6.crabs.evening_detective_server.UpdateScenarioPlaceRsp\"u\x92AK\n" +
"\x1bТочки сценария\x12,Обновить точку сценария\x82\xd3\xe4\x93\x02!:\x01*\x1a\x1c/api/scenarios/places/{code}\x12\xf7\x01\n" +
"\x13DeleteScenarioPlace\x126.crabs.evening_detective_server.DeleteScenarioPlaceReq\x1a6.crabs.evening_detective_server.DeleteScenarioPlaceRsp\"p\x92AI\n" +
"\x1bТочки сценария\x12*Удалить точку сценария\x82\xd3\xe4\x93\x02\x1e*\x1c/api/scenarios/places/{code}B\xd7\x01\x92A\xc8\x01\x12U\n" +
"\x10Сценарии\x12\x1fУдалить сценарий\x82\xd3\xe4\x93\x02\x15*\x13/api/scenarios/{id}\x12\xef\x01\n" +
"\x10AddScenarioPlace\x123.crabs.evening_detective_server.AddScenarioPlaceReq\x1a3.crabs.evening_detective_server.AddScenarioPlaceRsp\"q\x92AI\n" +
"\x1bТочки сценария\x12*Создать точку сценария\x82\xd3\xe4\x93\x02\x1f:\x01*\"\x1a/api/scenarios/{id}/places\x12\x81\x02\n" +
"\x13UpdateScenarioPlace\x126.crabs.evening_detective_server.UpdateScenarioPlaceReq\x1a6.crabs.evening_detective_server.UpdateScenarioPlaceRsp\"z\x92AK\n" +
"\x1bТочки сценария\x12,Обновить точку сценария\x82\xd3\xe4\x93\x02&:\x01*\x1a!/api/scenarios/{id}/places/{code}\x12\xfc\x01\n" +
"\x13DeleteScenarioPlace\x126.crabs.evening_detective_server.DeleteScenarioPlaceReq\x1a6.crabs.evening_detective_server.DeleteScenarioPlaceRsp\"u\x92AI\n" +
"\x1bТочки сценария\x12*Удалить точку сценария\x82\xd3\xe4\x93\x02#*!/api/scenarios/{id}/places/{code}B\xd7\x01\x92A\xc8\x01\x12U\n" +
"KДокументация сервиса \"Вечерний детектив\"2\x06v0.1.0Z]\n" +
"[\n" +
"\n" +