477 lines
14 KiB
Go
477 lines
14 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.28.0
|
|
// protoc v3.20.0
|
|
// source: story/story_msg.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// 查询关卡进度
|
|
type StoryGetListReq struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *StoryGetListReq) Reset() {
|
|
*x = StoryGetListReq{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_story_story_msg_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *StoryGetListReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StoryGetListReq) ProtoMessage() {}
|
|
|
|
func (x *StoryGetListReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_story_story_msg_proto_msgTypes[0]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StoryGetListReq.ProtoReflect.Descriptor instead.
|
|
func (*StoryGetListReq) Descriptor() ([]byte, []int) {
|
|
return file_story_story_msg_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
// 返回进度信息
|
|
type StoryGetListResp struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Data []*DBStory `protobuf:"bytes,1,rep,name=data,proto3" json:"data"`
|
|
}
|
|
|
|
func (x *StoryGetListResp) Reset() {
|
|
*x = StoryGetListResp{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_story_story_msg_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *StoryGetListResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StoryGetListResp) ProtoMessage() {}
|
|
|
|
func (x *StoryGetListResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_story_story_msg_proto_msgTypes[1]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StoryGetListResp.ProtoReflect.Descriptor instead.
|
|
func (*StoryGetListResp) Descriptor() ([]byte, []int) {
|
|
return file_story_story_msg_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *StoryGetListResp) GetData() []*DBStory {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 领取关卡宝箱
|
|
type StoryGetRewrdReq struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
ChapterId uint32 `protobuf:"varint,1,opt,name=chapterId,proto3" json:"chapterId"` // 章节ID
|
|
BoxId uint32 `protobuf:"varint,2,opt,name=boxId,proto3" json:"boxId"` // 宝箱ID
|
|
}
|
|
|
|
func (x *StoryGetRewrdReq) Reset() {
|
|
*x = StoryGetRewrdReq{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_story_story_msg_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *StoryGetRewrdReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StoryGetRewrdReq) ProtoMessage() {}
|
|
|
|
func (x *StoryGetRewrdReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_story_story_msg_proto_msgTypes[2]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StoryGetRewrdReq.ProtoReflect.Descriptor instead.
|
|
func (*StoryGetRewrdReq) Descriptor() ([]byte, []int) {
|
|
return file_story_story_msg_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *StoryGetRewrdReq) GetChapterId() uint32 {
|
|
if x != nil {
|
|
return x.ChapterId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *StoryGetRewrdReq) GetBoxId() uint32 {
|
|
if x != nil {
|
|
return x.BoxId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type StoryGetRewrdResp struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Data *DBStory `protobuf:"bytes,1,opt,name=data,proto3" json:"data"` //当前章节信息
|
|
}
|
|
|
|
func (x *StoryGetRewrdResp) Reset() {
|
|
*x = StoryGetRewrdResp{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_story_story_msg_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *StoryGetRewrdResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StoryGetRewrdResp) ProtoMessage() {}
|
|
|
|
func (x *StoryGetRewrdResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_story_story_msg_proto_msgTypes[3]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StoryGetRewrdResp.ProtoReflect.Descriptor instead.
|
|
func (*StoryGetRewrdResp) Descriptor() ([]byte, []int) {
|
|
return file_story_story_msg_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *StoryGetRewrdResp) GetData() *DBStory {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 挑战关卡
|
|
type StoryChallengeReq struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
ChapterId uint32 `protobuf:"varint,1,opt,name=chapterId,proto3" json:"chapterId"` // 章节ID
|
|
StoryId uint32 `protobuf:"varint,2,opt,name=storyId,proto3" json:"storyId"` // 小关ID
|
|
}
|
|
|
|
func (x *StoryChallengeReq) Reset() {
|
|
*x = StoryChallengeReq{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_story_story_msg_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *StoryChallengeReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StoryChallengeReq) ProtoMessage() {}
|
|
|
|
func (x *StoryChallengeReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_story_story_msg_proto_msgTypes[4]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StoryChallengeReq.ProtoReflect.Descriptor instead.
|
|
func (*StoryChallengeReq) Descriptor() ([]byte, []int) {
|
|
return file_story_story_msg_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *StoryChallengeReq) GetChapterId() uint32 {
|
|
if x != nil {
|
|
return x.ChapterId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *StoryChallengeReq) GetStoryId() uint32 {
|
|
if x != nil {
|
|
return x.StoryId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type StoryChallengeResp struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Data *DBStory `protobuf:"bytes,1,opt,name=data,proto3" json:"data"` //当前章节信息
|
|
}
|
|
|
|
func (x *StoryChallengeResp) Reset() {
|
|
*x = StoryChallengeResp{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_story_story_msg_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *StoryChallengeResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StoryChallengeResp) ProtoMessage() {}
|
|
|
|
func (x *StoryChallengeResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_story_story_msg_proto_msgTypes[5]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StoryChallengeResp.ProtoReflect.Descriptor instead.
|
|
func (*StoryChallengeResp) Descriptor() ([]byte, []int) {
|
|
return file_story_story_msg_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *StoryChallengeResp) GetData() *DBStory {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_story_story_msg_proto protoreflect.FileDescriptor
|
|
|
|
var file_story_story_msg_proto_rawDesc = []byte{
|
|
0x0a, 0x15, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6d, 0x73,
|
|
0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x73,
|
|
0x74, 0x6f, 0x72, 0x79, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x11, 0x0a,
|
|
0x0f, 0x53, 0x74, 0x6f, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71,
|
|
0x22, 0x30, 0x0a, 0x10, 0x53, 0x74, 0x6f, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74,
|
|
0x52, 0x65, 0x73, 0x70, 0x12, 0x1c, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03,
|
|
0x28, 0x0b, 0x32, 0x08, 0x2e, 0x44, 0x42, 0x53, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x04, 0x64, 0x61,
|
|
0x74, 0x61, 0x22, 0x46, 0x0a, 0x10, 0x53, 0x74, 0x6f, 0x72, 0x79, 0x47, 0x65, 0x74, 0x52, 0x65,
|
|
0x77, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65,
|
|
0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x63, 0x68, 0x61, 0x70, 0x74,
|
|
0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6f, 0x78, 0x49, 0x64, 0x18, 0x02, 0x20,
|
|
0x01, 0x28, 0x0d, 0x52, 0x05, 0x62, 0x6f, 0x78, 0x49, 0x64, 0x22, 0x31, 0x0a, 0x11, 0x53, 0x74,
|
|
0x6f, 0x72, 0x79, 0x47, 0x65, 0x74, 0x52, 0x65, 0x77, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12,
|
|
0x1c, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e,
|
|
0x44, 0x42, 0x53, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x4b, 0x0a,
|
|
0x11, 0x53, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x52,
|
|
0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18,
|
|
0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x49, 0x64,
|
|
0x12, 0x18, 0x0a, 0x07, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
0x0d, 0x52, 0x07, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x22, 0x32, 0x0a, 0x12, 0x53, 0x74,
|
|
0x6f, 0x72, 0x79, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70,
|
|
0x12, 0x1c, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08,
|
|
0x2e, 0x44, 0x42, 0x53, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x06,
|
|
0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_story_story_msg_proto_rawDescOnce sync.Once
|
|
file_story_story_msg_proto_rawDescData = file_story_story_msg_proto_rawDesc
|
|
)
|
|
|
|
func file_story_story_msg_proto_rawDescGZIP() []byte {
|
|
file_story_story_msg_proto_rawDescOnce.Do(func() {
|
|
file_story_story_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_story_story_msg_proto_rawDescData)
|
|
})
|
|
return file_story_story_msg_proto_rawDescData
|
|
}
|
|
|
|
var file_story_story_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
|
var file_story_story_msg_proto_goTypes = []interface{}{
|
|
(*StoryGetListReq)(nil), // 0: StoryGetListReq
|
|
(*StoryGetListResp)(nil), // 1: StoryGetListResp
|
|
(*StoryGetRewrdReq)(nil), // 2: StoryGetRewrdReq
|
|
(*StoryGetRewrdResp)(nil), // 3: StoryGetRewrdResp
|
|
(*StoryChallengeReq)(nil), // 4: StoryChallengeReq
|
|
(*StoryChallengeResp)(nil), // 5: StoryChallengeResp
|
|
(*DBStory)(nil), // 6: DBStory
|
|
}
|
|
var file_story_story_msg_proto_depIdxs = []int32{
|
|
6, // 0: StoryGetListResp.data:type_name -> DBStory
|
|
6, // 1: StoryGetRewrdResp.data:type_name -> DBStory
|
|
6, // 2: StoryChallengeResp.data:type_name -> DBStory
|
|
3, // [3:3] is the sub-list for method output_type
|
|
3, // [3:3] is the sub-list for method input_type
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
0, // [0:3] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_story_story_msg_proto_init() }
|
|
func file_story_story_msg_proto_init() {
|
|
if File_story_story_msg_proto != nil {
|
|
return
|
|
}
|
|
file_story_story_db_proto_init()
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_story_story_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*StoryGetListReq); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_story_story_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*StoryGetListResp); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_story_story_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*StoryGetRewrdReq); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_story_story_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*StoryGetRewrdResp); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_story_story_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*StoryChallengeReq); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_story_story_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*StoryChallengeResp); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_story_story_msg_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 6,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_story_story_msg_proto_goTypes,
|
|
DependencyIndexes: file_story_story_msg_proto_depIdxs,
|
|
MessageInfos: file_story_story_msg_proto_msgTypes,
|
|
}.Build()
|
|
File_story_story_msg_proto = out.File
|
|
file_story_story_msg_proto_rawDesc = nil
|
|
file_story_story_msg_proto_goTypes = nil
|
|
file_story_story_msg_proto_depIdxs = nil
|
|
}
|