485 lines
14 KiB
Go
485 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: items/items_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 ItemsGetlistReq struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
IType int32 `protobuf:"varint,1,opt,name=IType,proto3" json:"IType"` //道具类型
|
|
}
|
|
|
|
func (x *ItemsGetlistReq) Reset() {
|
|
*x = ItemsGetlistReq{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_items_items_msg_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ItemsGetlistReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ItemsGetlistReq) ProtoMessage() {}
|
|
|
|
func (x *ItemsGetlistReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_items_items_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 ItemsGetlistReq.ProtoReflect.Descriptor instead.
|
|
func (*ItemsGetlistReq) Descriptor() ([]byte, []int) {
|
|
return file_items_items_msg_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *ItemsGetlistReq) GetIType() int32 {
|
|
if x != nil {
|
|
return x.IType
|
|
}
|
|
return 0
|
|
}
|
|
|
|
//查询用户背包请求 回应
|
|
type ItemsGetlistResp struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Grids []*DB_UserItemData `protobuf:"bytes,1,rep,name=Grids,proto3" json:"Grids"` //用户背包列表
|
|
}
|
|
|
|
func (x *ItemsGetlistResp) Reset() {
|
|
*x = ItemsGetlistResp{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_items_items_msg_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ItemsGetlistResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ItemsGetlistResp) ProtoMessage() {}
|
|
|
|
func (x *ItemsGetlistResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_items_items_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 ItemsGetlistResp.ProtoReflect.Descriptor instead.
|
|
func (*ItemsGetlistResp) Descriptor() ([]byte, []int) {
|
|
return file_items_items_msg_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *ItemsGetlistResp) GetGrids() []*DB_UserItemData {
|
|
if x != nil {
|
|
return x.Grids
|
|
}
|
|
return nil
|
|
}
|
|
|
|
//使用物品请求
|
|
type ItemsUseItemReq struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
GridId int32 `protobuf:"varint,1,opt,name=GridId,proto3" json:"GridId"` //格子Id
|
|
ItemId int32 `protobuf:"varint,2,opt,name=ItemId,proto3" json:"ItemId"` //物品Id
|
|
Amount uint32 `protobuf:"varint,3,opt,name=Amount,proto3" json:"Amount"` //使用数量
|
|
}
|
|
|
|
func (x *ItemsUseItemReq) Reset() {
|
|
*x = ItemsUseItemReq{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_items_items_msg_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ItemsUseItemReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ItemsUseItemReq) ProtoMessage() {}
|
|
|
|
func (x *ItemsUseItemReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_items_items_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 ItemsUseItemReq.ProtoReflect.Descriptor instead.
|
|
func (*ItemsUseItemReq) Descriptor() ([]byte, []int) {
|
|
return file_items_items_msg_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *ItemsUseItemReq) GetGridId() int32 {
|
|
if x != nil {
|
|
return x.GridId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ItemsUseItemReq) GetItemId() int32 {
|
|
if x != nil {
|
|
return x.ItemId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ItemsUseItemReq) GetAmount() uint32 {
|
|
if x != nil {
|
|
return x.Amount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
//使用物品请求 回应
|
|
type ItemsUseItemResp struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *ItemsUseItemResp) Reset() {
|
|
*x = ItemsUseItemResp{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_items_items_msg_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ItemsUseItemResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ItemsUseItemResp) ProtoMessage() {}
|
|
|
|
func (x *ItemsUseItemResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_items_items_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 ItemsUseItemResp.ProtoReflect.Descriptor instead.
|
|
func (*ItemsUseItemResp) Descriptor() ([]byte, []int) {
|
|
return file_items_items_msg_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
//出售道具请求sailitem
|
|
type ItemsSellItemReq struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
GridId int32 `protobuf:"varint,1,opt,name=GridId,proto3" json:"GridId"` //格子Id
|
|
ItemId int32 `protobuf:"varint,2,opt,name=ItemId,proto3" json:"ItemId"` //物品Id
|
|
Amount uint32 `protobuf:"varint,3,opt,name=Amount,proto3" json:"Amount"` //使用数量
|
|
}
|
|
|
|
func (x *ItemsSellItemReq) Reset() {
|
|
*x = ItemsSellItemReq{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_items_items_msg_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ItemsSellItemReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ItemsSellItemReq) ProtoMessage() {}
|
|
|
|
func (x *ItemsSellItemReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_items_items_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 ItemsSellItemReq.ProtoReflect.Descriptor instead.
|
|
func (*ItemsSellItemReq) Descriptor() ([]byte, []int) {
|
|
return file_items_items_msg_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *ItemsSellItemReq) GetGridId() int32 {
|
|
if x != nil {
|
|
return x.GridId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ItemsSellItemReq) GetItemId() int32 {
|
|
if x != nil {
|
|
return x.ItemId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ItemsSellItemReq) GetAmount() uint32 {
|
|
if x != nil {
|
|
return x.Amount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
//出售道具请求 回应
|
|
type ItemsSellItemResp struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *ItemsSellItemResp) Reset() {
|
|
*x = ItemsSellItemResp{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_items_items_msg_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ItemsSellItemResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ItemsSellItemResp) ProtoMessage() {}
|
|
|
|
func (x *ItemsSellItemResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_items_items_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 ItemsSellItemResp.ProtoReflect.Descriptor instead.
|
|
func (*ItemsSellItemResp) Descriptor() ([]byte, []int) {
|
|
return file_items_items_msg_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
var File_items_items_msg_proto protoreflect.FileDescriptor
|
|
|
|
var file_items_items_msg_proto_rawDesc = []byte{
|
|
0x0a, 0x15, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x2f, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x5f, 0x6d, 0x73,
|
|
0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x2f, 0x69,
|
|
0x74, 0x65, 0x6d, 0x73, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x27, 0x0a,
|
|
0x0f, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x47, 0x65, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71,
|
|
0x12, 0x14, 0x0a, 0x05, 0x49, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
|
|
0x05, 0x49, 0x54, 0x79, 0x70, 0x65, 0x22, 0x3a, 0x0a, 0x10, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x47,
|
|
0x65, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x26, 0x0a, 0x05, 0x47, 0x72,
|
|
0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x44, 0x42, 0x5f, 0x55,
|
|
0x73, 0x65, 0x72, 0x49, 0x74, 0x65, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x47, 0x72, 0x69,
|
|
0x64, 0x73, 0x22, 0x59, 0x0a, 0x0f, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x55, 0x73, 0x65, 0x49, 0x74,
|
|
0x65, 0x6d, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x47, 0x72, 0x69, 0x64, 0x49, 0x64, 0x18,
|
|
0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x47, 0x72, 0x69, 0x64, 0x49, 0x64, 0x12, 0x16, 0x0a,
|
|
0x06, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x49,
|
|
0x74, 0x65, 0x6d, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18,
|
|
0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x12, 0x0a,
|
|
0x10, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x55, 0x73, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73,
|
|
0x70, 0x22, 0x5a, 0x0a, 0x10, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x53, 0x65, 0x6c, 0x6c, 0x49, 0x74,
|
|
0x65, 0x6d, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x47, 0x72, 0x69, 0x64, 0x49, 0x64, 0x18,
|
|
0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x47, 0x72, 0x69, 0x64, 0x49, 0x64, 0x12, 0x16, 0x0a,
|
|
0x06, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x49,
|
|
0x74, 0x65, 0x6d, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18,
|
|
0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x13, 0x0a,
|
|
0x11, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x53, 0x65, 0x6c, 0x6c, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65,
|
|
0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
|
0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_items_items_msg_proto_rawDescOnce sync.Once
|
|
file_items_items_msg_proto_rawDescData = file_items_items_msg_proto_rawDesc
|
|
)
|
|
|
|
func file_items_items_msg_proto_rawDescGZIP() []byte {
|
|
file_items_items_msg_proto_rawDescOnce.Do(func() {
|
|
file_items_items_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_items_items_msg_proto_rawDescData)
|
|
})
|
|
return file_items_items_msg_proto_rawDescData
|
|
}
|
|
|
|
var file_items_items_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
|
var file_items_items_msg_proto_goTypes = []interface{}{
|
|
(*ItemsGetlistReq)(nil), // 0: ItemsGetlistReq
|
|
(*ItemsGetlistResp)(nil), // 1: ItemsGetlistResp
|
|
(*ItemsUseItemReq)(nil), // 2: ItemsUseItemReq
|
|
(*ItemsUseItemResp)(nil), // 3: ItemsUseItemResp
|
|
(*ItemsSellItemReq)(nil), // 4: ItemsSellItemReq
|
|
(*ItemsSellItemResp)(nil), // 5: ItemsSellItemResp
|
|
(*DB_UserItemData)(nil), // 6: DB_UserItemData
|
|
}
|
|
var file_items_items_msg_proto_depIdxs = []int32{
|
|
6, // 0: ItemsGetlistResp.Grids:type_name -> DB_UserItemData
|
|
1, // [1:1] is the sub-list for method output_type
|
|
1, // [1:1] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_items_items_msg_proto_init() }
|
|
func file_items_items_msg_proto_init() {
|
|
if File_items_items_msg_proto != nil {
|
|
return
|
|
}
|
|
file_items_items_db_proto_init()
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_items_items_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ItemsGetlistReq); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_items_items_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ItemsGetlistResp); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_items_items_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ItemsUseItemReq); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_items_items_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ItemsUseItemResp); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_items_items_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ItemsSellItemReq); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_items_items_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ItemsSellItemResp); 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_items_items_msg_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 6,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_items_items_msg_proto_goTypes,
|
|
DependencyIndexes: file_items_items_msg_proto_depIdxs,
|
|
MessageInfos: file_items_items_msg_proto_msgTypes,
|
|
}.Build()
|
|
File_items_items_msg_proto = out.File
|
|
file_items_items_msg_proto_rawDesc = nil
|
|
file_items_items_msg_proto_goTypes = nil
|
|
file_items_items_msg_proto_depIdxs = nil
|
|
}
|