add catalog

This commit is contained in:
2026-07-26 02:13:24 +07:00
parent d5a99508d3
commit fc9753e069
10 changed files with 498 additions and 163 deletions
+262 -163
View File
@@ -1553,6 +1553,94 @@ func (x *GetMyScenariosRsp) GetScenarios() []*Scenario {
return nil
}
type GetScenariosCatalogReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetScenariosCatalogReq) Reset() {
*x = GetScenariosCatalogReq{}
mi := &file_main_proto_msgTypes[32]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetScenariosCatalogReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetScenariosCatalogReq) ProtoMessage() {}
func (x *GetScenariosCatalogReq) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[32]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetScenariosCatalogReq.ProtoReflect.Descriptor instead.
func (*GetScenariosCatalogReq) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{32}
}
type GetScenariosCatalogRsp struct {
state protoimpl.MessageState `protogen:"open.v1"`
Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
Scenarios []*Scenario `protobuf:"bytes,2,rep,name=scenarios,proto3" json:"scenarios,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetScenariosCatalogRsp) Reset() {
*x = GetScenariosCatalogRsp{}
mi := &file_main_proto_msgTypes[33]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetScenariosCatalogRsp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetScenariosCatalogRsp) ProtoMessage() {}
func (x *GetScenariosCatalogRsp) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[33]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetScenariosCatalogRsp.ProtoReflect.Descriptor instead.
func (*GetScenariosCatalogRsp) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{33}
}
func (x *GetScenariosCatalogRsp) GetError() string {
if x != nil {
return x.Error
}
return ""
}
func (x *GetScenariosCatalogRsp) GetScenarios() []*Scenario {
if x != nil {
return x.Scenarios
}
return nil
}
type GetScenarioReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
@@ -1562,7 +1650,7 @@ type GetScenarioReq struct {
func (x *GetScenarioReq) Reset() {
*x = GetScenarioReq{}
mi := &file_main_proto_msgTypes[32]
mi := &file_main_proto_msgTypes[34]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1574,7 +1662,7 @@ func (x *GetScenarioReq) String() string {
func (*GetScenarioReq) ProtoMessage() {}
func (x *GetScenarioReq) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[32]
mi := &file_main_proto_msgTypes[34]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1587,7 +1675,7 @@ func (x *GetScenarioReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetScenarioReq.ProtoReflect.Descriptor instead.
func (*GetScenarioReq) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{32}
return file_main_proto_rawDescGZIP(), []int{34}
}
func (x *GetScenarioReq) GetId() int32 {
@@ -1607,7 +1695,7 @@ type GetScenarioRsp struct {
func (x *GetScenarioRsp) Reset() {
*x = GetScenarioRsp{}
mi := &file_main_proto_msgTypes[33]
mi := &file_main_proto_msgTypes[35]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1619,7 +1707,7 @@ func (x *GetScenarioRsp) String() string {
func (*GetScenarioRsp) ProtoMessage() {}
func (x *GetScenarioRsp) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[33]
mi := &file_main_proto_msgTypes[35]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1632,7 +1720,7 @@ func (x *GetScenarioRsp) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetScenarioRsp.ProtoReflect.Descriptor instead.
func (*GetScenarioRsp) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{33}
return file_main_proto_rawDescGZIP(), []int{35}
}
func (x *GetScenarioRsp) GetError() string {
@@ -1667,7 +1755,7 @@ type Scenario struct {
func (x *Scenario) Reset() {
*x = Scenario{}
mi := &file_main_proto_msgTypes[34]
mi := &file_main_proto_msgTypes[36]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1679,7 +1767,7 @@ func (x *Scenario) String() string {
func (*Scenario) ProtoMessage() {}
func (x *Scenario) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[34]
mi := &file_main_proto_msgTypes[36]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1692,7 +1780,7 @@ func (x *Scenario) ProtoReflect() protoreflect.Message {
// Deprecated: Use Scenario.ProtoReflect.Descriptor instead.
func (*Scenario) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{34}
return file_main_proto_rawDescGZIP(), []int{36}
}
func (x *Scenario) GetId() int32 {
@@ -1774,7 +1862,7 @@ type Story struct {
func (x *Story) Reset() {
*x = Story{}
mi := &file_main_proto_msgTypes[35]
mi := &file_main_proto_msgTypes[37]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1786,7 +1874,7 @@ func (x *Story) String() string {
func (*Story) ProtoMessage() {}
func (x *Story) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[35]
mi := &file_main_proto_msgTypes[37]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1799,7 +1887,7 @@ func (x *Story) ProtoReflect() protoreflect.Message {
// Deprecated: Use Story.ProtoReflect.Descriptor instead.
func (*Story) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{35}
return file_main_proto_rawDescGZIP(), []int{37}
}
func (x *Story) GetPlaces() []*Place {
@@ -1825,7 +1913,7 @@ type Place struct {
func (x *Place) Reset() {
*x = Place{}
mi := &file_main_proto_msgTypes[36]
mi := &file_main_proto_msgTypes[38]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1837,7 +1925,7 @@ func (x *Place) String() string {
func (*Place) ProtoMessage() {}
func (x *Place) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[36]
mi := &file_main_proto_msgTypes[38]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1850,7 +1938,7 @@ func (x *Place) ProtoReflect() protoreflect.Message {
// Deprecated: Use Place.ProtoReflect.Descriptor instead.
func (*Place) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{36}
return file_main_proto_rawDescGZIP(), []int{38}
}
func (x *Place) GetCode() string {
@@ -1919,7 +2007,7 @@ type Application struct {
func (x *Application) Reset() {
*x = Application{}
mi := &file_main_proto_msgTypes[37]
mi := &file_main_proto_msgTypes[39]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1931,7 +2019,7 @@ func (x *Application) String() string {
func (*Application) ProtoMessage() {}
func (x *Application) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[37]
mi := &file_main_proto_msgTypes[39]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1944,7 +2032,7 @@ func (x *Application) ProtoReflect() protoreflect.Message {
// Deprecated: Use Application.ProtoReflect.Descriptor instead.
func (*Application) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{37}
return file_main_proto_rawDescGZIP(), []int{39}
}
func (x *Application) GetName() string {
@@ -1972,7 +2060,7 @@ type Door struct {
func (x *Door) Reset() {
*x = Door{}
mi := &file_main_proto_msgTypes[38]
mi := &file_main_proto_msgTypes[40]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1984,7 +2072,7 @@ func (x *Door) String() string {
func (*Door) ProtoMessage() {}
func (x *Door) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[38]
mi := &file_main_proto_msgTypes[40]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1997,7 +2085,7 @@ func (x *Door) ProtoReflect() protoreflect.Message {
// Deprecated: Use Door.ProtoReflect.Descriptor instead.
func (*Door) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{38}
return file_main_proto_rawDescGZIP(), []int{40}
}
func (x *Door) GetCode() string {
@@ -2030,7 +2118,7 @@ type Key struct {
func (x *Key) Reset() {
*x = Key{}
mi := &file_main_proto_msgTypes[39]
mi := &file_main_proto_msgTypes[41]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2042,7 +2130,7 @@ func (x *Key) String() string {
func (*Key) ProtoMessage() {}
func (x *Key) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[39]
mi := &file_main_proto_msgTypes[41]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2055,7 +2143,7 @@ func (x *Key) ProtoReflect() protoreflect.Message {
// Deprecated: Use Key.ProtoReflect.Descriptor instead.
func (*Key) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{39}
return file_main_proto_rawDescGZIP(), []int{41}
}
func (x *Key) GetName() string {
@@ -2077,7 +2165,7 @@ type UpdateScenarioReq struct {
func (x *UpdateScenarioReq) Reset() {
*x = UpdateScenarioReq{}
mi := &file_main_proto_msgTypes[40]
mi := &file_main_proto_msgTypes[42]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2089,7 +2177,7 @@ func (x *UpdateScenarioReq) String() string {
func (*UpdateScenarioReq) ProtoMessage() {}
func (x *UpdateScenarioReq) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[40]
mi := &file_main_proto_msgTypes[42]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2102,7 +2190,7 @@ func (x *UpdateScenarioReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use UpdateScenarioReq.ProtoReflect.Descriptor instead.
func (*UpdateScenarioReq) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{40}
return file_main_proto_rawDescGZIP(), []int{42}
}
func (x *UpdateScenarioReq) GetId() int32 {
@@ -2142,7 +2230,7 @@ type UpdateScenarioRsp struct {
func (x *UpdateScenarioRsp) Reset() {
*x = UpdateScenarioRsp{}
mi := &file_main_proto_msgTypes[41]
mi := &file_main_proto_msgTypes[43]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2154,7 +2242,7 @@ func (x *UpdateScenarioRsp) String() string {
func (*UpdateScenarioRsp) ProtoMessage() {}
func (x *UpdateScenarioRsp) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[41]
mi := &file_main_proto_msgTypes[43]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2167,7 +2255,7 @@ func (x *UpdateScenarioRsp) ProtoReflect() protoreflect.Message {
// Deprecated: Use UpdateScenarioRsp.ProtoReflect.Descriptor instead.
func (*UpdateScenarioRsp) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{41}
return file_main_proto_rawDescGZIP(), []int{43}
}
func (x *UpdateScenarioRsp) GetError() string {
@@ -2186,7 +2274,7 @@ type PublicScenarioReq struct {
func (x *PublicScenarioReq) Reset() {
*x = PublicScenarioReq{}
mi := &file_main_proto_msgTypes[42]
mi := &file_main_proto_msgTypes[44]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2198,7 +2286,7 @@ func (x *PublicScenarioReq) String() string {
func (*PublicScenarioReq) ProtoMessage() {}
func (x *PublicScenarioReq) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[42]
mi := &file_main_proto_msgTypes[44]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2211,7 +2299,7 @@ func (x *PublicScenarioReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use PublicScenarioReq.ProtoReflect.Descriptor instead.
func (*PublicScenarioReq) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{42}
return file_main_proto_rawDescGZIP(), []int{44}
}
func (x *PublicScenarioReq) GetId() int32 {
@@ -2230,7 +2318,7 @@ type PublicScenarioRsp struct {
func (x *PublicScenarioRsp) Reset() {
*x = PublicScenarioRsp{}
mi := &file_main_proto_msgTypes[43]
mi := &file_main_proto_msgTypes[45]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2242,7 +2330,7 @@ func (x *PublicScenarioRsp) String() string {
func (*PublicScenarioRsp) ProtoMessage() {}
func (x *PublicScenarioRsp) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[43]
mi := &file_main_proto_msgTypes[45]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2255,7 +2343,7 @@ func (x *PublicScenarioRsp) ProtoReflect() protoreflect.Message {
// Deprecated: Use PublicScenarioRsp.ProtoReflect.Descriptor instead.
func (*PublicScenarioRsp) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{43}
return file_main_proto_rawDescGZIP(), []int{45}
}
func (x *PublicScenarioRsp) GetError() string {
@@ -2274,7 +2362,7 @@ type DraftScenarioReq struct {
func (x *DraftScenarioReq) Reset() {
*x = DraftScenarioReq{}
mi := &file_main_proto_msgTypes[44]
mi := &file_main_proto_msgTypes[46]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2286,7 +2374,7 @@ func (x *DraftScenarioReq) String() string {
func (*DraftScenarioReq) ProtoMessage() {}
func (x *DraftScenarioReq) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[44]
mi := &file_main_proto_msgTypes[46]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2299,7 +2387,7 @@ func (x *DraftScenarioReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use DraftScenarioReq.ProtoReflect.Descriptor instead.
func (*DraftScenarioReq) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{44}
return file_main_proto_rawDescGZIP(), []int{46}
}
func (x *DraftScenarioReq) GetId() int32 {
@@ -2318,7 +2406,7 @@ type DraftScenarioRsp struct {
func (x *DraftScenarioRsp) Reset() {
*x = DraftScenarioRsp{}
mi := &file_main_proto_msgTypes[45]
mi := &file_main_proto_msgTypes[47]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2330,7 +2418,7 @@ func (x *DraftScenarioRsp) String() string {
func (*DraftScenarioRsp) ProtoMessage() {}
func (x *DraftScenarioRsp) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[45]
mi := &file_main_proto_msgTypes[47]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2343,7 +2431,7 @@ func (x *DraftScenarioRsp) ProtoReflect() protoreflect.Message {
// Deprecated: Use DraftScenarioRsp.ProtoReflect.Descriptor instead.
func (*DraftScenarioRsp) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{45}
return file_main_proto_rawDescGZIP(), []int{47}
}
func (x *DraftScenarioRsp) GetError() string {
@@ -2362,7 +2450,7 @@ type DeleteScenarioReq struct {
func (x *DeleteScenarioReq) Reset() {
*x = DeleteScenarioReq{}
mi := &file_main_proto_msgTypes[46]
mi := &file_main_proto_msgTypes[48]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2374,7 +2462,7 @@ func (x *DeleteScenarioReq) String() string {
func (*DeleteScenarioReq) ProtoMessage() {}
func (x *DeleteScenarioReq) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[46]
mi := &file_main_proto_msgTypes[48]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2387,7 +2475,7 @@ func (x *DeleteScenarioReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteScenarioReq.ProtoReflect.Descriptor instead.
func (*DeleteScenarioReq) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{46}
return file_main_proto_rawDescGZIP(), []int{48}
}
func (x *DeleteScenarioReq) GetId() int32 {
@@ -2406,7 +2494,7 @@ type DeleteScenarioRsp struct {
func (x *DeleteScenarioRsp) Reset() {
*x = DeleteScenarioRsp{}
mi := &file_main_proto_msgTypes[47]
mi := &file_main_proto_msgTypes[49]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2418,7 +2506,7 @@ func (x *DeleteScenarioRsp) String() string {
func (*DeleteScenarioRsp) ProtoMessage() {}
func (x *DeleteScenarioRsp) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[47]
mi := &file_main_proto_msgTypes[49]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2431,7 +2519,7 @@ func (x *DeleteScenarioRsp) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteScenarioRsp.ProtoReflect.Descriptor instead.
func (*DeleteScenarioRsp) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{47}
return file_main_proto_rawDescGZIP(), []int{49}
}
func (x *DeleteScenarioRsp) GetError() string {
@@ -2451,7 +2539,7 @@ type AddScenarioPlaceReq struct {
func (x *AddScenarioPlaceReq) Reset() {
*x = AddScenarioPlaceReq{}
mi := &file_main_proto_msgTypes[48]
mi := &file_main_proto_msgTypes[50]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2463,7 +2551,7 @@ func (x *AddScenarioPlaceReq) String() string {
func (*AddScenarioPlaceReq) ProtoMessage() {}
func (x *AddScenarioPlaceReq) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[48]
mi := &file_main_proto_msgTypes[50]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2476,7 +2564,7 @@ func (x *AddScenarioPlaceReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use AddScenarioPlaceReq.ProtoReflect.Descriptor instead.
func (*AddScenarioPlaceReq) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{48}
return file_main_proto_rawDescGZIP(), []int{50}
}
func (x *AddScenarioPlaceReq) GetId() int32 {
@@ -2502,7 +2590,7 @@ type AddScenarioPlaceRsp struct {
func (x *AddScenarioPlaceRsp) Reset() {
*x = AddScenarioPlaceRsp{}
mi := &file_main_proto_msgTypes[49]
mi := &file_main_proto_msgTypes[51]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2514,7 +2602,7 @@ func (x *AddScenarioPlaceRsp) String() string {
func (*AddScenarioPlaceRsp) ProtoMessage() {}
func (x *AddScenarioPlaceRsp) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[49]
mi := &file_main_proto_msgTypes[51]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2527,7 +2615,7 @@ func (x *AddScenarioPlaceRsp) ProtoReflect() protoreflect.Message {
// Deprecated: Use AddScenarioPlaceRsp.ProtoReflect.Descriptor instead.
func (*AddScenarioPlaceRsp) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{49}
return file_main_proto_rawDescGZIP(), []int{51}
}
func (x *AddScenarioPlaceRsp) GetError() string {
@@ -2548,7 +2636,7 @@ type UpdateScenarioPlaceReq struct {
func (x *UpdateScenarioPlaceReq) Reset() {
*x = UpdateScenarioPlaceReq{}
mi := &file_main_proto_msgTypes[50]
mi := &file_main_proto_msgTypes[52]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2560,7 +2648,7 @@ func (x *UpdateScenarioPlaceReq) String() string {
func (*UpdateScenarioPlaceReq) ProtoMessage() {}
func (x *UpdateScenarioPlaceReq) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[50]
mi := &file_main_proto_msgTypes[52]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2573,7 +2661,7 @@ func (x *UpdateScenarioPlaceReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use UpdateScenarioPlaceReq.ProtoReflect.Descriptor instead.
func (*UpdateScenarioPlaceReq) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{50}
return file_main_proto_rawDescGZIP(), []int{52}
}
func (x *UpdateScenarioPlaceReq) GetId() int32 {
@@ -2606,7 +2694,7 @@ type UpdateScenarioPlaceRsp struct {
func (x *UpdateScenarioPlaceRsp) Reset() {
*x = UpdateScenarioPlaceRsp{}
mi := &file_main_proto_msgTypes[51]
mi := &file_main_proto_msgTypes[53]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2618,7 +2706,7 @@ func (x *UpdateScenarioPlaceRsp) String() string {
func (*UpdateScenarioPlaceRsp) ProtoMessage() {}
func (x *UpdateScenarioPlaceRsp) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[51]
mi := &file_main_proto_msgTypes[53]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2631,7 +2719,7 @@ func (x *UpdateScenarioPlaceRsp) ProtoReflect() protoreflect.Message {
// Deprecated: Use UpdateScenarioPlaceRsp.ProtoReflect.Descriptor instead.
func (*UpdateScenarioPlaceRsp) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{51}
return file_main_proto_rawDescGZIP(), []int{53}
}
func (x *UpdateScenarioPlaceRsp) GetError() string {
@@ -2651,7 +2739,7 @@ type DeleteScenarioPlaceReq struct {
func (x *DeleteScenarioPlaceReq) Reset() {
*x = DeleteScenarioPlaceReq{}
mi := &file_main_proto_msgTypes[52]
mi := &file_main_proto_msgTypes[54]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2663,7 +2751,7 @@ func (x *DeleteScenarioPlaceReq) String() string {
func (*DeleteScenarioPlaceReq) ProtoMessage() {}
func (x *DeleteScenarioPlaceReq) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[52]
mi := &file_main_proto_msgTypes[54]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2676,7 +2764,7 @@ func (x *DeleteScenarioPlaceReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteScenarioPlaceReq.ProtoReflect.Descriptor instead.
func (*DeleteScenarioPlaceReq) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{52}
return file_main_proto_rawDescGZIP(), []int{54}
}
func (x *DeleteScenarioPlaceReq) GetId() int32 {
@@ -2702,7 +2790,7 @@ type DeleteScenarioPlaceRsp struct {
func (x *DeleteScenarioPlaceRsp) Reset() {
*x = DeleteScenarioPlaceRsp{}
mi := &file_main_proto_msgTypes[53]
mi := &file_main_proto_msgTypes[55]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2714,7 +2802,7 @@ func (x *DeleteScenarioPlaceRsp) String() string {
func (*DeleteScenarioPlaceRsp) ProtoMessage() {}
func (x *DeleteScenarioPlaceRsp) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[53]
mi := &file_main_proto_msgTypes[55]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2727,7 +2815,7 @@ func (x *DeleteScenarioPlaceRsp) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteScenarioPlaceRsp.ProtoReflect.Descriptor instead.
func (*DeleteScenarioPlaceRsp) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{53}
return file_main_proto_rawDescGZIP(), []int{55}
}
func (x *DeleteScenarioPlaceRsp) GetError() string {
@@ -2825,6 +2913,10 @@ const file_main_proto_rawDesc = "" +
"\x11GetMyScenariosReq\"q\n" +
"\x11GetMyScenariosRsp\x12\x14\n" +
"\x05error\x18\x01 \x01(\tR\x05error\x12F\n" +
"\tscenarios\x18\x02 \x03(\v2(.crabs.evening_detective_server.ScenarioR\tscenarios\"\x18\n" +
"\x16GetScenariosCatalogReq\"v\n" +
"\x16GetScenariosCatalogRsp\x12\x14\n" +
"\x05error\x18\x01 \x01(\tR\x05error\x12F\n" +
"\tscenarios\x18\x02 \x03(\v2(.crabs.evening_detective_server.ScenarioR\tscenarios\" \n" +
"\x0eGetScenarioReq\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x05R\x02id\"l\n" +
@@ -2901,7 +2993,7 @@ const file_main_proto_rawDesc = "" +
"\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\xe1(\n" +
"\x05error\x18\x01 \x01(\tR\x05error2\xc8*\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" +
@@ -2948,7 +3040,9 @@ const file_main_proto_rawDesc = "" +
"\vAddScenario\x12..crabs.evening_detective_server.AddScenarioReq\x1a..crabs.evening_detective_server.AddScenarioRsp\"N\x92A3\n" +
"\x10Сценарии\x12\x1fСоздать сценарий\x82\xd3\xe4\x93\x02\x12:\x01*\"\r/api/scenario\x12\xd2\x01\n" +
"\x0eGetMyScenarios\x121.crabs.evening_detective_server.GetMyScenariosReq\x1a1.crabs.evening_detective_server.GetMyScenariosRsp\"Z\x92A>\n" +
"\x10Сценарии\x12*Получить свои сценарии\x82\xd3\xe4\x93\x02\x13\x12\x11/api/my-scenarios\x12\xca\x01\n" +
"\x10Сценарии\x12*Получить свои сценарии\x82\xd3\xe4\x93\x02\x13\x12\x11/api/my-scenarios\x12\xe4\x01\n" +
"\x13GetScenariosCatalog\x126.crabs.evening_detective_server.GetScenariosCatalogReq\x1a6.crabs.evening_detective_server.GetScenariosCatalogRsp\"]\x92AF\n" +
"\x10Сценарии\x122Получить каталог сценариев\x82\xd3\xe4\x93\x02\x0e\x12\f/api/catalog\x12\xca\x01\n" +
"\vGetScenario\x12..crabs.evening_detective_server.GetScenarioReq\x1a..crabs.evening_detective_server.GetScenarioRsp\"[\x92A=\n" +
"\x10Сценарии\x12)Получить сценарий по id\x82\xd3\xe4\x93\x02\x15\x12\x13/api/scenarios/{id}\x12\xd8\x01\n" +
"\x0eUpdateScenario\x121.crabs.evening_detective_server.UpdateScenarioReq\x1a1.crabs.evening_detective_server.UpdateScenarioRsp\"`\x92A?\n" +
@@ -2985,7 +3079,7 @@ func file_main_proto_rawDescGZIP() []byte {
return file_main_proto_rawDescData
}
var file_main_proto_msgTypes = make([]protoimpl.MessageInfo, 54)
var file_main_proto_msgTypes = make([]protoimpl.MessageInfo, 56)
var file_main_proto_goTypes = []any{
(*PingReq)(nil), // 0: crabs.evening_detective_server.PingReq
(*PingRsp)(nil), // 1: crabs.evening_detective_server.PingRsp
@@ -3019,103 +3113,108 @@ var file_main_proto_goTypes = []any{
(*AddScenarioRsp)(nil), // 29: crabs.evening_detective_server.AddScenarioRsp
(*GetMyScenariosReq)(nil), // 30: crabs.evening_detective_server.GetMyScenariosReq
(*GetMyScenariosRsp)(nil), // 31: crabs.evening_detective_server.GetMyScenariosRsp
(*GetScenarioReq)(nil), // 32: crabs.evening_detective_server.GetScenarioReq
(*GetScenarioRsp)(nil), // 33: crabs.evening_detective_server.GetScenarioRsp
(*Scenario)(nil), // 34: crabs.evening_detective_server.Scenario
(*Story)(nil), // 35: crabs.evening_detective_server.Story
(*Place)(nil), // 36: crabs.evening_detective_server.Place
(*Application)(nil), // 37: crabs.evening_detective_server.Application
(*Door)(nil), // 38: crabs.evening_detective_server.Door
(*Key)(nil), // 39: crabs.evening_detective_server.Key
(*UpdateScenarioReq)(nil), // 40: crabs.evening_detective_server.UpdateScenarioReq
(*UpdateScenarioRsp)(nil), // 41: crabs.evening_detective_server.UpdateScenarioRsp
(*PublicScenarioReq)(nil), // 42: crabs.evening_detective_server.PublicScenarioReq
(*PublicScenarioRsp)(nil), // 43: crabs.evening_detective_server.PublicScenarioRsp
(*DraftScenarioReq)(nil), // 44: crabs.evening_detective_server.DraftScenarioReq
(*DraftScenarioRsp)(nil), // 45: crabs.evening_detective_server.DraftScenarioRsp
(*DeleteScenarioReq)(nil), // 46: crabs.evening_detective_server.DeleteScenarioReq
(*DeleteScenarioRsp)(nil), // 47: crabs.evening_detective_server.DeleteScenarioRsp
(*AddScenarioPlaceReq)(nil), // 48: crabs.evening_detective_server.AddScenarioPlaceReq
(*AddScenarioPlaceRsp)(nil), // 49: crabs.evening_detective_server.AddScenarioPlaceRsp
(*UpdateScenarioPlaceReq)(nil), // 50: crabs.evening_detective_server.UpdateScenarioPlaceReq
(*UpdateScenarioPlaceRsp)(nil), // 51: crabs.evening_detective_server.UpdateScenarioPlaceRsp
(*DeleteScenarioPlaceReq)(nil), // 52: crabs.evening_detective_server.DeleteScenarioPlaceReq
(*DeleteScenarioPlaceRsp)(nil), // 53: crabs.evening_detective_server.DeleteScenarioPlaceRsp
(*timestamppb.Timestamp)(nil), // 54: google.protobuf.Timestamp
(*httpbody.HttpBody)(nil), // 55: google.api.HttpBody
(*GetScenariosCatalogReq)(nil), // 32: crabs.evening_detective_server.GetScenariosCatalogReq
(*GetScenariosCatalogRsp)(nil), // 33: crabs.evening_detective_server.GetScenariosCatalogRsp
(*GetScenarioReq)(nil), // 34: crabs.evening_detective_server.GetScenarioReq
(*GetScenarioRsp)(nil), // 35: crabs.evening_detective_server.GetScenarioRsp
(*Scenario)(nil), // 36: crabs.evening_detective_server.Scenario
(*Story)(nil), // 37: crabs.evening_detective_server.Story
(*Place)(nil), // 38: crabs.evening_detective_server.Place
(*Application)(nil), // 39: crabs.evening_detective_server.Application
(*Door)(nil), // 40: crabs.evening_detective_server.Door
(*Key)(nil), // 41: crabs.evening_detective_server.Key
(*UpdateScenarioReq)(nil), // 42: crabs.evening_detective_server.UpdateScenarioReq
(*UpdateScenarioRsp)(nil), // 43: crabs.evening_detective_server.UpdateScenarioRsp
(*PublicScenarioReq)(nil), // 44: crabs.evening_detective_server.PublicScenarioReq
(*PublicScenarioRsp)(nil), // 45: crabs.evening_detective_server.PublicScenarioRsp
(*DraftScenarioReq)(nil), // 46: crabs.evening_detective_server.DraftScenarioReq
(*DraftScenarioRsp)(nil), // 47: crabs.evening_detective_server.DraftScenarioRsp
(*DeleteScenarioReq)(nil), // 48: crabs.evening_detective_server.DeleteScenarioReq
(*DeleteScenarioRsp)(nil), // 49: crabs.evening_detective_server.DeleteScenarioRsp
(*AddScenarioPlaceReq)(nil), // 50: crabs.evening_detective_server.AddScenarioPlaceReq
(*AddScenarioPlaceRsp)(nil), // 51: crabs.evening_detective_server.AddScenarioPlaceRsp
(*UpdateScenarioPlaceReq)(nil), // 52: crabs.evening_detective_server.UpdateScenarioPlaceReq
(*UpdateScenarioPlaceRsp)(nil), // 53: crabs.evening_detective_server.UpdateScenarioPlaceRsp
(*DeleteScenarioPlaceReq)(nil), // 54: crabs.evening_detective_server.DeleteScenarioPlaceReq
(*DeleteScenarioPlaceRsp)(nil), // 55: crabs.evening_detective_server.DeleteScenarioPlaceRsp
(*timestamppb.Timestamp)(nil), // 56: google.protobuf.Timestamp
(*httpbody.HttpBody)(nil), // 57: google.api.HttpBody
}
var file_main_proto_depIdxs = []int32{
14, // 0: crabs.evening_detective_server.GetUsersRsp.users:type_name -> crabs.evening_detective_server.User
54, // 1: crabs.evening_detective_server.User.created_at:type_name -> google.protobuf.Timestamp
56, // 1: crabs.evening_detective_server.User.created_at:type_name -> google.protobuf.Timestamp
14, // 2: crabs.evening_detective_server.GetUserByIdRsp.user:type_name -> crabs.evening_detective_server.User
14, // 3: crabs.evening_detective_server.GetMeRsp.user:type_name -> crabs.evening_detective_server.User
34, // 4: crabs.evening_detective_server.GetMyScenariosRsp.scenarios:type_name -> crabs.evening_detective_server.Scenario
34, // 5: crabs.evening_detective_server.GetScenarioRsp.scenario:type_name -> crabs.evening_detective_server.Scenario
35, // 6: crabs.evening_detective_server.Scenario.story:type_name -> crabs.evening_detective_server.Story
14, // 7: crabs.evening_detective_server.Scenario.author:type_name -> crabs.evening_detective_server.User
54, // 8: crabs.evening_detective_server.Scenario.updated_at:type_name -> google.protobuf.Timestamp
54, // 9: crabs.evening_detective_server.Scenario.created_at:type_name -> google.protobuf.Timestamp
54, // 10: crabs.evening_detective_server.Scenario.published_at:type_name -> google.protobuf.Timestamp
36, // 11: crabs.evening_detective_server.Story.places:type_name -> crabs.evening_detective_server.Place
37, // 12: crabs.evening_detective_server.Place.applications:type_name -> crabs.evening_detective_server.Application
38, // 13: crabs.evening_detective_server.Place.doors:type_name -> crabs.evening_detective_server.Door
39, // 14: crabs.evening_detective_server.Place.keys:type_name -> crabs.evening_detective_server.Key
39, // 15: crabs.evening_detective_server.Door.keys:type_name -> crabs.evening_detective_server.Key
36, // 16: crabs.evening_detective_server.AddScenarioPlaceReq.place:type_name -> crabs.evening_detective_server.Place
36, // 17: crabs.evening_detective_server.UpdateScenarioPlaceReq.place:type_name -> crabs.evening_detective_server.Place
0, // 18: crabs.evening_detective_server.EveningDetectiveServer.Ping:input_type -> crabs.evening_detective_server.PingReq
2, // 19: crabs.evening_detective_server.EveningDetectiveServer.Echo:input_type -> crabs.evening_detective_server.EchoReq
4, // 20: crabs.evening_detective_server.EveningDetectiveServer.Signup:input_type -> crabs.evening_detective_server.SignupReq
6, // 21: crabs.evening_detective_server.EveningDetectiveServer.RefreshPassword:input_type -> crabs.evening_detective_server.RefreshPasswordReq
8, // 22: crabs.evening_detective_server.EveningDetectiveServer.Login:input_type -> crabs.evening_detective_server.LoginReq
10, // 23: crabs.evening_detective_server.EveningDetectiveServer.Refresh:input_type -> crabs.evening_detective_server.RefreshReq
12, // 24: crabs.evening_detective_server.EveningDetectiveServer.GetUsers:input_type -> crabs.evening_detective_server.GetUsersReq
15, // 25: crabs.evening_detective_server.EveningDetectiveServer.GetUserById:input_type -> crabs.evening_detective_server.GetUserByIdReq
17, // 26: crabs.evening_detective_server.EveningDetectiveServer.GetMe:input_type -> crabs.evening_detective_server.GetMeReq
19, // 27: crabs.evening_detective_server.EveningDetectiveServer.AddUserRole:input_type -> crabs.evening_detective_server.AddUserRoleReq
21, // 28: crabs.evening_detective_server.EveningDetectiveServer.DeleteUserRole:input_type -> crabs.evening_detective_server.DeleteUserRoleReq
23, // 29: crabs.evening_detective_server.EveningDetectiveServer.GetPermissions:input_type -> crabs.evening_detective_server.GetPermissionsReq
25, // 30: crabs.evening_detective_server.EveningDetectiveServer.UploadFile:input_type -> crabs.evening_detective_server.UploadFileReq
27, // 31: crabs.evening_detective_server.EveningDetectiveServer.DownloadFile:input_type -> crabs.evening_detective_server.DownloadFileReq
28, // 32: crabs.evening_detective_server.EveningDetectiveServer.AddScenario:input_type -> crabs.evening_detective_server.AddScenarioReq
30, // 33: crabs.evening_detective_server.EveningDetectiveServer.GetMyScenarios:input_type -> crabs.evening_detective_server.GetMyScenariosReq
32, // 34: crabs.evening_detective_server.EveningDetectiveServer.GetScenario:input_type -> crabs.evening_detective_server.GetScenarioReq
40, // 35: crabs.evening_detective_server.EveningDetectiveServer.UpdateScenario:input_type -> crabs.evening_detective_server.UpdateScenarioReq
42, // 36: crabs.evening_detective_server.EveningDetectiveServer.PublicScenario:input_type -> crabs.evening_detective_server.PublicScenarioReq
44, // 37: crabs.evening_detective_server.EveningDetectiveServer.DraftScenario:input_type -> crabs.evening_detective_server.DraftScenarioReq
46, // 38: crabs.evening_detective_server.EveningDetectiveServer.DeleteScenario:input_type -> crabs.evening_detective_server.DeleteScenarioReq
48, // 39: crabs.evening_detective_server.EveningDetectiveServer.AddScenarioPlace:input_type -> crabs.evening_detective_server.AddScenarioPlaceReq
50, // 40: crabs.evening_detective_server.EveningDetectiveServer.UpdateScenarioPlace:input_type -> crabs.evening_detective_server.UpdateScenarioPlaceReq
52, // 41: crabs.evening_detective_server.EveningDetectiveServer.DeleteScenarioPlace:input_type -> crabs.evening_detective_server.DeleteScenarioPlaceReq
1, // 42: crabs.evening_detective_server.EveningDetectiveServer.Ping:output_type -> crabs.evening_detective_server.PingRsp
3, // 43: crabs.evening_detective_server.EveningDetectiveServer.Echo:output_type -> crabs.evening_detective_server.EchoRsp
5, // 44: crabs.evening_detective_server.EveningDetectiveServer.Signup:output_type -> crabs.evening_detective_server.SignupRsp
7, // 45: crabs.evening_detective_server.EveningDetectiveServer.RefreshPassword:output_type -> crabs.evening_detective_server.RefreshPasswordRsp
9, // 46: crabs.evening_detective_server.EveningDetectiveServer.Login:output_type -> crabs.evening_detective_server.LoginRsp
11, // 47: crabs.evening_detective_server.EveningDetectiveServer.Refresh:output_type -> crabs.evening_detective_server.RefreshRsp
13, // 48: crabs.evening_detective_server.EveningDetectiveServer.GetUsers:output_type -> crabs.evening_detective_server.GetUsersRsp
16, // 49: crabs.evening_detective_server.EveningDetectiveServer.GetUserById:output_type -> crabs.evening_detective_server.GetUserByIdRsp
18, // 50: crabs.evening_detective_server.EveningDetectiveServer.GetMe:output_type -> crabs.evening_detective_server.GetMeRsp
20, // 51: crabs.evening_detective_server.EveningDetectiveServer.AddUserRole:output_type -> crabs.evening_detective_server.AddUserRoleRsp
22, // 52: crabs.evening_detective_server.EveningDetectiveServer.DeleteUserRole:output_type -> crabs.evening_detective_server.DeleteUserRoleRsp
24, // 53: crabs.evening_detective_server.EveningDetectiveServer.GetPermissions:output_type -> crabs.evening_detective_server.GetPermissionsRsp
26, // 54: crabs.evening_detective_server.EveningDetectiveServer.UploadFile:output_type -> crabs.evening_detective_server.UploadFileRsp
55, // 55: crabs.evening_detective_server.EveningDetectiveServer.DownloadFile:output_type -> google.api.HttpBody
29, // 56: crabs.evening_detective_server.EveningDetectiveServer.AddScenario:output_type -> crabs.evening_detective_server.AddScenarioRsp
31, // 57: crabs.evening_detective_server.EveningDetectiveServer.GetMyScenarios:output_type -> crabs.evening_detective_server.GetMyScenariosRsp
33, // 58: crabs.evening_detective_server.EveningDetectiveServer.GetScenario:output_type -> crabs.evening_detective_server.GetScenarioRsp
41, // 59: crabs.evening_detective_server.EveningDetectiveServer.UpdateScenario:output_type -> crabs.evening_detective_server.UpdateScenarioRsp
43, // 60: crabs.evening_detective_server.EveningDetectiveServer.PublicScenario:output_type -> crabs.evening_detective_server.PublicScenarioRsp
45, // 61: crabs.evening_detective_server.EveningDetectiveServer.DraftScenario:output_type -> crabs.evening_detective_server.DraftScenarioRsp
47, // 62: crabs.evening_detective_server.EveningDetectiveServer.DeleteScenario:output_type -> crabs.evening_detective_server.DeleteScenarioRsp
49, // 63: crabs.evening_detective_server.EveningDetectiveServer.AddScenarioPlace:output_type -> crabs.evening_detective_server.AddScenarioPlaceRsp
51, // 64: crabs.evening_detective_server.EveningDetectiveServer.UpdateScenarioPlace:output_type -> crabs.evening_detective_server.UpdateScenarioPlaceRsp
53, // 65: crabs.evening_detective_server.EveningDetectiveServer.DeleteScenarioPlace:output_type -> crabs.evening_detective_server.DeleteScenarioPlaceRsp
42, // [42:66] is the sub-list for method output_type
18, // [18:42] is the sub-list for method input_type
18, // [18:18] is the sub-list for extension type_name
18, // [18:18] is the sub-list for extension extendee
0, // [0:18] is the sub-list for field type_name
36, // 4: crabs.evening_detective_server.GetMyScenariosRsp.scenarios:type_name -> crabs.evening_detective_server.Scenario
36, // 5: crabs.evening_detective_server.GetScenariosCatalogRsp.scenarios:type_name -> crabs.evening_detective_server.Scenario
36, // 6: crabs.evening_detective_server.GetScenarioRsp.scenario:type_name -> crabs.evening_detective_server.Scenario
37, // 7: crabs.evening_detective_server.Scenario.story:type_name -> crabs.evening_detective_server.Story
14, // 8: crabs.evening_detective_server.Scenario.author:type_name -> crabs.evening_detective_server.User
56, // 9: crabs.evening_detective_server.Scenario.updated_at:type_name -> google.protobuf.Timestamp
56, // 10: crabs.evening_detective_server.Scenario.created_at:type_name -> google.protobuf.Timestamp
56, // 11: crabs.evening_detective_server.Scenario.published_at:type_name -> google.protobuf.Timestamp
38, // 12: crabs.evening_detective_server.Story.places:type_name -> crabs.evening_detective_server.Place
39, // 13: crabs.evening_detective_server.Place.applications:type_name -> crabs.evening_detective_server.Application
40, // 14: crabs.evening_detective_server.Place.doors:type_name -> crabs.evening_detective_server.Door
41, // 15: crabs.evening_detective_server.Place.keys:type_name -> crabs.evening_detective_server.Key
41, // 16: crabs.evening_detective_server.Door.keys:type_name -> crabs.evening_detective_server.Key
38, // 17: crabs.evening_detective_server.AddScenarioPlaceReq.place:type_name -> crabs.evening_detective_server.Place
38, // 18: crabs.evening_detective_server.UpdateScenarioPlaceReq.place:type_name -> crabs.evening_detective_server.Place
0, // 19: crabs.evening_detective_server.EveningDetectiveServer.Ping:input_type -> crabs.evening_detective_server.PingReq
2, // 20: crabs.evening_detective_server.EveningDetectiveServer.Echo:input_type -> crabs.evening_detective_server.EchoReq
4, // 21: crabs.evening_detective_server.EveningDetectiveServer.Signup:input_type -> crabs.evening_detective_server.SignupReq
6, // 22: crabs.evening_detective_server.EveningDetectiveServer.RefreshPassword:input_type -> crabs.evening_detective_server.RefreshPasswordReq
8, // 23: crabs.evening_detective_server.EveningDetectiveServer.Login:input_type -> crabs.evening_detective_server.LoginReq
10, // 24: crabs.evening_detective_server.EveningDetectiveServer.Refresh:input_type -> crabs.evening_detective_server.RefreshReq
12, // 25: crabs.evening_detective_server.EveningDetectiveServer.GetUsers:input_type -> crabs.evening_detective_server.GetUsersReq
15, // 26: crabs.evening_detective_server.EveningDetectiveServer.GetUserById:input_type -> crabs.evening_detective_server.GetUserByIdReq
17, // 27: crabs.evening_detective_server.EveningDetectiveServer.GetMe:input_type -> crabs.evening_detective_server.GetMeReq
19, // 28: crabs.evening_detective_server.EveningDetectiveServer.AddUserRole:input_type -> crabs.evening_detective_server.AddUserRoleReq
21, // 29: crabs.evening_detective_server.EveningDetectiveServer.DeleteUserRole:input_type -> crabs.evening_detective_server.DeleteUserRoleReq
23, // 30: crabs.evening_detective_server.EveningDetectiveServer.GetPermissions:input_type -> crabs.evening_detective_server.GetPermissionsReq
25, // 31: crabs.evening_detective_server.EveningDetectiveServer.UploadFile:input_type -> crabs.evening_detective_server.UploadFileReq
27, // 32: crabs.evening_detective_server.EveningDetectiveServer.DownloadFile:input_type -> crabs.evening_detective_server.DownloadFileReq
28, // 33: crabs.evening_detective_server.EveningDetectiveServer.AddScenario:input_type -> crabs.evening_detective_server.AddScenarioReq
30, // 34: crabs.evening_detective_server.EveningDetectiveServer.GetMyScenarios:input_type -> crabs.evening_detective_server.GetMyScenariosReq
32, // 35: crabs.evening_detective_server.EveningDetectiveServer.GetScenariosCatalog:input_type -> crabs.evening_detective_server.GetScenariosCatalogReq
34, // 36: crabs.evening_detective_server.EveningDetectiveServer.GetScenario:input_type -> crabs.evening_detective_server.GetScenarioReq
42, // 37: crabs.evening_detective_server.EveningDetectiveServer.UpdateScenario:input_type -> crabs.evening_detective_server.UpdateScenarioReq
44, // 38: crabs.evening_detective_server.EveningDetectiveServer.PublicScenario:input_type -> crabs.evening_detective_server.PublicScenarioReq
46, // 39: crabs.evening_detective_server.EveningDetectiveServer.DraftScenario:input_type -> crabs.evening_detective_server.DraftScenarioReq
48, // 40: crabs.evening_detective_server.EveningDetectiveServer.DeleteScenario:input_type -> crabs.evening_detective_server.DeleteScenarioReq
50, // 41: crabs.evening_detective_server.EveningDetectiveServer.AddScenarioPlace:input_type -> crabs.evening_detective_server.AddScenarioPlaceReq
52, // 42: crabs.evening_detective_server.EveningDetectiveServer.UpdateScenarioPlace:input_type -> crabs.evening_detective_server.UpdateScenarioPlaceReq
54, // 43: crabs.evening_detective_server.EveningDetectiveServer.DeleteScenarioPlace:input_type -> crabs.evening_detective_server.DeleteScenarioPlaceReq
1, // 44: crabs.evening_detective_server.EveningDetectiveServer.Ping:output_type -> crabs.evening_detective_server.PingRsp
3, // 45: crabs.evening_detective_server.EveningDetectiveServer.Echo:output_type -> crabs.evening_detective_server.EchoRsp
5, // 46: crabs.evening_detective_server.EveningDetectiveServer.Signup:output_type -> crabs.evening_detective_server.SignupRsp
7, // 47: crabs.evening_detective_server.EveningDetectiveServer.RefreshPassword:output_type -> crabs.evening_detective_server.RefreshPasswordRsp
9, // 48: crabs.evening_detective_server.EveningDetectiveServer.Login:output_type -> crabs.evening_detective_server.LoginRsp
11, // 49: crabs.evening_detective_server.EveningDetectiveServer.Refresh:output_type -> crabs.evening_detective_server.RefreshRsp
13, // 50: crabs.evening_detective_server.EveningDetectiveServer.GetUsers:output_type -> crabs.evening_detective_server.GetUsersRsp
16, // 51: crabs.evening_detective_server.EveningDetectiveServer.GetUserById:output_type -> crabs.evening_detective_server.GetUserByIdRsp
18, // 52: crabs.evening_detective_server.EveningDetectiveServer.GetMe:output_type -> crabs.evening_detective_server.GetMeRsp
20, // 53: crabs.evening_detective_server.EveningDetectiveServer.AddUserRole:output_type -> crabs.evening_detective_server.AddUserRoleRsp
22, // 54: crabs.evening_detective_server.EveningDetectiveServer.DeleteUserRole:output_type -> crabs.evening_detective_server.DeleteUserRoleRsp
24, // 55: crabs.evening_detective_server.EveningDetectiveServer.GetPermissions:output_type -> crabs.evening_detective_server.GetPermissionsRsp
26, // 56: crabs.evening_detective_server.EveningDetectiveServer.UploadFile:output_type -> crabs.evening_detective_server.UploadFileRsp
57, // 57: crabs.evening_detective_server.EveningDetectiveServer.DownloadFile:output_type -> google.api.HttpBody
29, // 58: crabs.evening_detective_server.EveningDetectiveServer.AddScenario:output_type -> crabs.evening_detective_server.AddScenarioRsp
31, // 59: crabs.evening_detective_server.EveningDetectiveServer.GetMyScenarios:output_type -> crabs.evening_detective_server.GetMyScenariosRsp
33, // 60: crabs.evening_detective_server.EveningDetectiveServer.GetScenariosCatalog:output_type -> crabs.evening_detective_server.GetScenariosCatalogRsp
35, // 61: crabs.evening_detective_server.EveningDetectiveServer.GetScenario:output_type -> crabs.evening_detective_server.GetScenarioRsp
43, // 62: crabs.evening_detective_server.EveningDetectiveServer.UpdateScenario:output_type -> crabs.evening_detective_server.UpdateScenarioRsp
45, // 63: crabs.evening_detective_server.EveningDetectiveServer.PublicScenario:output_type -> crabs.evening_detective_server.PublicScenarioRsp
47, // 64: crabs.evening_detective_server.EveningDetectiveServer.DraftScenario:output_type -> crabs.evening_detective_server.DraftScenarioRsp
49, // 65: crabs.evening_detective_server.EveningDetectiveServer.DeleteScenario:output_type -> crabs.evening_detective_server.DeleteScenarioRsp
51, // 66: crabs.evening_detective_server.EveningDetectiveServer.AddScenarioPlace:output_type -> crabs.evening_detective_server.AddScenarioPlaceRsp
53, // 67: crabs.evening_detective_server.EveningDetectiveServer.UpdateScenarioPlace:output_type -> crabs.evening_detective_server.UpdateScenarioPlaceRsp
55, // 68: crabs.evening_detective_server.EveningDetectiveServer.DeleteScenarioPlace:output_type -> crabs.evening_detective_server.DeleteScenarioPlaceRsp
44, // [44:69] is the sub-list for method output_type
19, // [19:44] is the sub-list for method input_type
19, // [19:19] is the sub-list for extension type_name
19, // [19:19] is the sub-list for extension extendee
0, // [0:19] is the sub-list for field type_name
}
func init() { file_main_proto_init() }
@@ -3123,14 +3222,14 @@ func file_main_proto_init() {
if File_main_proto != nil {
return
}
file_main_proto_msgTypes[34].OneofWrappers = []any{}
file_main_proto_msgTypes[36].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_main_proto_rawDesc), len(file_main_proto_rawDesc)),
NumEnums: 0,
NumMessages: 54,
NumMessages: 56,
NumExtensions: 0,
NumServices: 1,
},
+60
View File
@@ -505,6 +505,27 @@ func local_request_EveningDetectiveServer_GetMyScenarios_0(ctx context.Context,
return msg, metadata, err
}
func request_EveningDetectiveServer_GetScenariosCatalog_0(ctx context.Context, marshaler runtime.Marshaler, client EveningDetectiveServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var (
protoReq GetScenariosCatalogReq
metadata runtime.ServerMetadata
)
if req.Body != nil {
_, _ = io.Copy(io.Discard, req.Body)
}
msg, err := client.GetScenariosCatalog(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_EveningDetectiveServer_GetScenariosCatalog_0(ctx context.Context, marshaler runtime.Marshaler, server EveningDetectiveServerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var (
protoReq GetScenariosCatalogReq
metadata runtime.ServerMetadata
)
msg, err := server.GetScenariosCatalog(ctx, &protoReq)
return msg, metadata, err
}
func request_EveningDetectiveServer_GetScenario_0(ctx context.Context, marshaler runtime.Marshaler, client EveningDetectiveServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var (
protoReq GetScenarioReq
@@ -1205,6 +1226,26 @@ func RegisterEveningDetectiveServerHandlerServer(ctx context.Context, mux *runti
}
forward_EveningDetectiveServer_GetMyScenarios_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle(http.MethodGet, pattern_EveningDetectiveServer_GetScenariosCatalog_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetScenariosCatalog", runtime.WithHTTPPathPattern("/api/catalog"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := local_request_EveningDetectiveServer_GetScenariosCatalog_0(annotatedContext, inboundMarshaler, server, req, pathParams)
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
if err != nil {
runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
return
}
forward_EveningDetectiveServer_GetScenariosCatalog_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle(http.MethodGet, pattern_EveningDetectiveServer_GetScenario_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -1677,6 +1718,23 @@ func RegisterEveningDetectiveServerHandlerClient(ctx context.Context, mux *runti
}
forward_EveningDetectiveServer_GetMyScenarios_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle(http.MethodGet, pattern_EveningDetectiveServer_GetScenariosCatalog_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/crabs.evening_detective_server.EveningDetectiveServer/GetScenariosCatalog", runtime.WithHTTPPathPattern("/api/catalog"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := request_EveningDetectiveServer_GetScenariosCatalog_0(annotatedContext, inboundMarshaler, client, req, pathParams)
annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
if err != nil {
runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
return
}
forward_EveningDetectiveServer_GetScenariosCatalog_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle(http.MethodGet, pattern_EveningDetectiveServer_GetScenario_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -1833,6 +1891,7 @@ var (
pattern_EveningDetectiveServer_DownloadFile_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "files", "filename"}, ""))
pattern_EveningDetectiveServer_AddScenario_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "scenario"}, ""))
pattern_EveningDetectiveServer_GetMyScenarios_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "my-scenarios"}, ""))
pattern_EveningDetectiveServer_GetScenariosCatalog_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"api", "catalog"}, ""))
pattern_EveningDetectiveServer_GetScenario_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "scenarios", "id"}, ""))
pattern_EveningDetectiveServer_UpdateScenario_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"api", "scenarios", "id"}, ""))
pattern_EveningDetectiveServer_PublicScenario_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"api", "scenarios", "id", "public"}, ""))
@@ -1860,6 +1919,7 @@ var (
forward_EveningDetectiveServer_DownloadFile_0 = runtime.ForwardResponseMessage
forward_EveningDetectiveServer_AddScenario_0 = runtime.ForwardResponseMessage
forward_EveningDetectiveServer_GetMyScenarios_0 = runtime.ForwardResponseMessage
forward_EveningDetectiveServer_GetScenariosCatalog_0 = runtime.ForwardResponseMessage
forward_EveningDetectiveServer_GetScenario_0 = runtime.ForwardResponseMessage
forward_EveningDetectiveServer_UpdateScenario_0 = runtime.ForwardResponseMessage
forward_EveningDetectiveServer_PublicScenario_0 = runtime.ForwardResponseMessage
+38
View File
@@ -36,6 +36,7 @@ const (
EveningDetectiveServer_DownloadFile_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/DownloadFile"
EveningDetectiveServer_AddScenario_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/AddScenario"
EveningDetectiveServer_GetMyScenarios_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetMyScenarios"
EveningDetectiveServer_GetScenariosCatalog_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetScenariosCatalog"
EveningDetectiveServer_GetScenario_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetScenario"
EveningDetectiveServer_UpdateScenario_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/UpdateScenario"
EveningDetectiveServer_PublicScenario_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/PublicScenario"
@@ -66,6 +67,7 @@ type EveningDetectiveServerClient interface {
DownloadFile(ctx context.Context, in *DownloadFileReq, opts ...grpc.CallOption) (*httpbody.HttpBody, error)
AddScenario(ctx context.Context, in *AddScenarioReq, opts ...grpc.CallOption) (*AddScenarioRsp, error)
GetMyScenarios(ctx context.Context, in *GetMyScenariosReq, opts ...grpc.CallOption) (*GetMyScenariosRsp, error)
GetScenariosCatalog(ctx context.Context, in *GetScenariosCatalogReq, opts ...grpc.CallOption) (*GetScenariosCatalogRsp, error)
GetScenario(ctx context.Context, in *GetScenarioReq, opts ...grpc.CallOption) (*GetScenarioRsp, error)
UpdateScenario(ctx context.Context, in *UpdateScenarioReq, opts ...grpc.CallOption) (*UpdateScenarioRsp, error)
PublicScenario(ctx context.Context, in *PublicScenarioReq, opts ...grpc.CallOption) (*PublicScenarioRsp, error)
@@ -244,6 +246,16 @@ func (c *eveningDetectiveServerClient) GetMyScenarios(ctx context.Context, in *G
return out, nil
}
func (c *eveningDetectiveServerClient) GetScenariosCatalog(ctx context.Context, in *GetScenariosCatalogReq, opts ...grpc.CallOption) (*GetScenariosCatalogRsp, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(GetScenariosCatalogRsp)
err := c.cc.Invoke(ctx, EveningDetectiveServer_GetScenariosCatalog_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *eveningDetectiveServerClient) GetScenario(ctx context.Context, in *GetScenarioReq, opts ...grpc.CallOption) (*GetScenarioRsp, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(GetScenarioRsp)
@@ -344,6 +356,7 @@ type EveningDetectiveServerServer interface {
DownloadFile(context.Context, *DownloadFileReq) (*httpbody.HttpBody, error)
AddScenario(context.Context, *AddScenarioReq) (*AddScenarioRsp, error)
GetMyScenarios(context.Context, *GetMyScenariosReq) (*GetMyScenariosRsp, error)
GetScenariosCatalog(context.Context, *GetScenariosCatalogReq) (*GetScenariosCatalogRsp, error)
GetScenario(context.Context, *GetScenarioReq) (*GetScenarioRsp, error)
UpdateScenario(context.Context, *UpdateScenarioReq) (*UpdateScenarioRsp, error)
PublicScenario(context.Context, *PublicScenarioReq) (*PublicScenarioRsp, error)
@@ -410,6 +423,9 @@ func (UnimplementedEveningDetectiveServerServer) AddScenario(context.Context, *A
func (UnimplementedEveningDetectiveServerServer) GetMyScenarios(context.Context, *GetMyScenariosReq) (*GetMyScenariosRsp, error) {
return nil, status.Error(codes.Unimplemented, "method GetMyScenarios not implemented")
}
func (UnimplementedEveningDetectiveServerServer) GetScenariosCatalog(context.Context, *GetScenariosCatalogReq) (*GetScenariosCatalogRsp, error) {
return nil, status.Error(codes.Unimplemented, "method GetScenariosCatalog not implemented")
}
func (UnimplementedEveningDetectiveServerServer) GetScenario(context.Context, *GetScenarioReq) (*GetScenarioRsp, error) {
return nil, status.Error(codes.Unimplemented, "method GetScenario not implemented")
}
@@ -744,6 +760,24 @@ func _EveningDetectiveServer_GetMyScenarios_Handler(srv interface{}, ctx context
return interceptor(ctx, in, info, handler)
}
func _EveningDetectiveServer_GetScenariosCatalog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetScenariosCatalogReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EveningDetectiveServerServer).GetScenariosCatalog(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: EveningDetectiveServer_GetScenariosCatalog_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EveningDetectiveServerServer).GetScenariosCatalog(ctx, req.(*GetScenariosCatalogReq))
}
return interceptor(ctx, in, info, handler)
}
func _EveningDetectiveServer_GetScenario_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetScenarioReq)
if err := dec(in); err != nil {
@@ -959,6 +993,10 @@ var EveningDetectiveServer_ServiceDesc = grpc.ServiceDesc{
MethodName: "GetMyScenarios",
Handler: _EveningDetectiveServer_GetMyScenarios_Handler,
},
{
MethodName: "GetScenariosCatalog",
Handler: _EveningDetectiveServer_GetScenariosCatalog_Handler,
},
{
MethodName: "GetScenario",
Handler: _EveningDetectiveServer_GetScenario_Handler,