修改物品背包模块名
This commit is contained in:
parent
4891d635d7
commit
4b5468aaeb
@ -8,13 +8,13 @@ import (
|
||||
)
|
||||
|
||||
//参数校验
|
||||
func (this *Api_Comp) Getlist_Check(session comm.IUserSession, req *pb.Pack_Getlist_Req) (result map[string]interface{}, code comm.ErrorCode) {
|
||||
func (this *Api_Comp) Getlist_Check(session comm.IUserSession, req *pb.Items_Getlist_Req) (result map[string]interface{}, code comm.ErrorCode) {
|
||||
result = map[string]interface{}{"ce": 123}
|
||||
return
|
||||
}
|
||||
|
||||
///获取用户道具
|
||||
func (this *Api_Comp) Getlist(session comm.IUserSession, agrs map[string]interface{}, req *pb.Pack_Getlist_Req) (code pb.ErrorCode) {
|
||||
func (this *Api_Comp) Getlist(session comm.IUserSession, agrs map[string]interface{}, req *pb.Items_Getlist_Req) (code pb.ErrorCode) {
|
||||
var (
|
||||
err error
|
||||
items []*pb.DB_UserItemData
|
||||
@ -25,7 +25,7 @@ func (this *Api_Comp) Getlist(session comm.IUserSession, agrs map[string]interfa
|
||||
dels []string
|
||||
)
|
||||
defer func() {
|
||||
session.SendMsg(string(this.module.GetType()), GetlistResp, &pb.Pack_Getlist_Resp{Grids: grids})
|
||||
session.SendMsg(string(this.module.GetType()), GetlistResp, &pb.Items_Getlist_Resp{Grids: grids})
|
||||
if code == pb.ErrorCode_Success {
|
||||
go func() { //异步处理修改数据
|
||||
this.module.model_pack_comp.Pack_UpdateUserPack(session.GetUserId(), modifys...)
|
||||
|
@ -6,15 +6,15 @@ import (
|
||||
)
|
||||
|
||||
//参数校验
|
||||
func (this *Api_Comp) SellItem_Check(session comm.IUserSession, req *pb.Pack_SellItem_Req) (result map[string]interface{}, code comm.ErrorCode) {
|
||||
func (this *Api_Comp) SellItem_Check(session comm.IUserSession, req *pb.Items_SellItem_Req) (result map[string]interface{}, code comm.ErrorCode) {
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
//出售道具
|
||||
func (this *Api_Comp) SellItem(session comm.IUserSession, agrs map[string]interface{}, req *pb.Pack_SellItem_Req) (code pb.ErrorCode) {
|
||||
func (this *Api_Comp) SellItem(session comm.IUserSession, agrs map[string]interface{}, req *pb.Items_SellItem_Req) (code pb.ErrorCode) {
|
||||
defer func() {
|
||||
session.SendMsg(string(this.module.GetType()), SellItemResp, &pb.Pack_SellItem_Resp{})
|
||||
session.SendMsg(string(this.module.GetType()), SellItemResp, &pb.Items_SellItem_Resp{})
|
||||
}()
|
||||
return
|
||||
}
|
||||
|
@ -6,15 +6,15 @@ import (
|
||||
)
|
||||
|
||||
//参数校验
|
||||
func (this *Api_Comp) Useitem_Check(session comm.IUserSession, req *pb.Pack_UseItem_Req) (result map[string]interface{}, code comm.ErrorCode) {
|
||||
func (this *Api_Comp) Useitem_Check(session comm.IUserSession, req *pb.Items_UseItem_Req) (result map[string]interface{}, code comm.ErrorCode) {
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
//使用道具
|
||||
func (this *Api_Comp) Useitem(session comm.IUserSession, agrs map[string]interface{}, req *pb.Pack_UseItem_Req) (code pb.ErrorCode) {
|
||||
func (this *Api_Comp) Useitem(session comm.IUserSession, agrs map[string]interface{}, req *pb.Items_UseItem_Req) (code pb.ErrorCode) {
|
||||
defer func() {
|
||||
session.SendMsg(string(this.module.GetType()), UseItemResp, &pb.Pack_UseItem_Resp{})
|
||||
session.SendMsg(string(this.module.GetType()), UseItemResp, &pb.Items_UseItem_Resp{})
|
||||
}()
|
||||
|
||||
return
|
||||
|
@ -74,7 +74,7 @@ func TestMain(m *testing.M) {
|
||||
}
|
||||
|
||||
func Test_Modules(t *testing.T) {
|
||||
data, _ := ptypes.MarshalAny(&pb.Pack_Getlist_Req{})
|
||||
data, _ := ptypes.MarshalAny(&pb.Items_Getlist_Req{})
|
||||
s_gateComp.ReceiveMsg(context.Background(), &pb.AgentMessage{Method: "pack.getlist", Message: data}, &pb.RPCMessageReply{})
|
||||
// items, err := module.db_comp.Pack_QueryUserPack("liwei1dao")
|
||||
// log.Debugf("item:%v err:%v", items, err)
|
||||
|
@ -21,7 +21,7 @@ const (
|
||||
)
|
||||
|
||||
//查询用户背包请求
|
||||
type Pack_Getlist_Req struct {
|
||||
type Items_Getlist_Req struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
@ -29,8 +29,8 @@ type Pack_Getlist_Req struct {
|
||||
IType int32 `protobuf:"varint,1,opt,name=IType,proto3" json:"IType"` //道具类型
|
||||
}
|
||||
|
||||
func (x *Pack_Getlist_Req) Reset() {
|
||||
*x = Pack_Getlist_Req{}
|
||||
func (x *Items_Getlist_Req) Reset() {
|
||||
*x = Items_Getlist_Req{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_items_items_msg_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -38,13 +38,13 @@ func (x *Pack_Getlist_Req) Reset() {
|
||||
}
|
||||
}
|
||||
|
||||
func (x *Pack_Getlist_Req) String() string {
|
||||
func (x *Items_Getlist_Req) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Pack_Getlist_Req) ProtoMessage() {}
|
||||
func (*Items_Getlist_Req) ProtoMessage() {}
|
||||
|
||||
func (x *Pack_Getlist_Req) ProtoReflect() protoreflect.Message {
|
||||
func (x *Items_Getlist_Req) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_items_items_msg_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -56,12 +56,12 @@ func (x *Pack_Getlist_Req) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Pack_Getlist_Req.ProtoReflect.Descriptor instead.
|
||||
func (*Pack_Getlist_Req) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use Items_Getlist_Req.ProtoReflect.Descriptor instead.
|
||||
func (*Items_Getlist_Req) Descriptor() ([]byte, []int) {
|
||||
return file_items_items_msg_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *Pack_Getlist_Req) GetIType() int32 {
|
||||
func (x *Items_Getlist_Req) GetIType() int32 {
|
||||
if x != nil {
|
||||
return x.IType
|
||||
}
|
||||
@ -69,7 +69,7 @@ func (x *Pack_Getlist_Req) GetIType() int32 {
|
||||
}
|
||||
|
||||
//查询用户背包请求 回应
|
||||
type Pack_Getlist_Resp struct {
|
||||
type Items_Getlist_Resp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
@ -77,8 +77,8 @@ type Pack_Getlist_Resp struct {
|
||||
Grids []*DB_UserItemData `protobuf:"bytes,1,rep,name=Grids,proto3" json:"Grids"` //用户背包列表
|
||||
}
|
||||
|
||||
func (x *Pack_Getlist_Resp) Reset() {
|
||||
*x = Pack_Getlist_Resp{}
|
||||
func (x *Items_Getlist_Resp) Reset() {
|
||||
*x = Items_Getlist_Resp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_items_items_msg_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -86,13 +86,13 @@ func (x *Pack_Getlist_Resp) Reset() {
|
||||
}
|
||||
}
|
||||
|
||||
func (x *Pack_Getlist_Resp) String() string {
|
||||
func (x *Items_Getlist_Resp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Pack_Getlist_Resp) ProtoMessage() {}
|
||||
func (*Items_Getlist_Resp) ProtoMessage() {}
|
||||
|
||||
func (x *Pack_Getlist_Resp) ProtoReflect() protoreflect.Message {
|
||||
func (x *Items_Getlist_Resp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_items_items_msg_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -104,12 +104,12 @@ func (x *Pack_Getlist_Resp) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Pack_Getlist_Resp.ProtoReflect.Descriptor instead.
|
||||
func (*Pack_Getlist_Resp) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use Items_Getlist_Resp.ProtoReflect.Descriptor instead.
|
||||
func (*Items_Getlist_Resp) Descriptor() ([]byte, []int) {
|
||||
return file_items_items_msg_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *Pack_Getlist_Resp) GetGrids() []*DB_UserItemData {
|
||||
func (x *Items_Getlist_Resp) GetGrids() []*DB_UserItemData {
|
||||
if x != nil {
|
||||
return x.Grids
|
||||
}
|
||||
@ -117,7 +117,7 @@ func (x *Pack_Getlist_Resp) GetGrids() []*DB_UserItemData {
|
||||
}
|
||||
|
||||
//使用物品请求
|
||||
type Pack_UseItem_Req struct {
|
||||
type Items_UseItem_Req struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
@ -127,8 +127,8 @@ type Pack_UseItem_Req struct {
|
||||
Amount uint32 `protobuf:"varint,3,opt,name=Amount,proto3" json:"Amount"` //使用数量
|
||||
}
|
||||
|
||||
func (x *Pack_UseItem_Req) Reset() {
|
||||
*x = Pack_UseItem_Req{}
|
||||
func (x *Items_UseItem_Req) Reset() {
|
||||
*x = Items_UseItem_Req{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_items_items_msg_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -136,13 +136,13 @@ func (x *Pack_UseItem_Req) Reset() {
|
||||
}
|
||||
}
|
||||
|
||||
func (x *Pack_UseItem_Req) String() string {
|
||||
func (x *Items_UseItem_Req) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Pack_UseItem_Req) ProtoMessage() {}
|
||||
func (*Items_UseItem_Req) ProtoMessage() {}
|
||||
|
||||
func (x *Pack_UseItem_Req) ProtoReflect() protoreflect.Message {
|
||||
func (x *Items_UseItem_Req) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_items_items_msg_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -154,26 +154,26 @@ func (x *Pack_UseItem_Req) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Pack_UseItem_Req.ProtoReflect.Descriptor instead.
|
||||
func (*Pack_UseItem_Req) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use Items_UseItem_Req.ProtoReflect.Descriptor instead.
|
||||
func (*Items_UseItem_Req) Descriptor() ([]byte, []int) {
|
||||
return file_items_items_msg_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *Pack_UseItem_Req) GetGridId() int32 {
|
||||
func (x *Items_UseItem_Req) GetGridId() int32 {
|
||||
if x != nil {
|
||||
return x.GridId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Pack_UseItem_Req) GetItemId() int32 {
|
||||
func (x *Items_UseItem_Req) GetItemId() int32 {
|
||||
if x != nil {
|
||||
return x.ItemId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Pack_UseItem_Req) GetAmount() uint32 {
|
||||
func (x *Items_UseItem_Req) GetAmount() uint32 {
|
||||
if x != nil {
|
||||
return x.Amount
|
||||
}
|
||||
@ -181,14 +181,14 @@ func (x *Pack_UseItem_Req) GetAmount() uint32 {
|
||||
}
|
||||
|
||||
//使用物品请求 回应
|
||||
type Pack_UseItem_Resp struct {
|
||||
type Items_UseItem_Resp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *Pack_UseItem_Resp) Reset() {
|
||||
*x = Pack_UseItem_Resp{}
|
||||
func (x *Items_UseItem_Resp) Reset() {
|
||||
*x = Items_UseItem_Resp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_items_items_msg_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -196,13 +196,13 @@ func (x *Pack_UseItem_Resp) Reset() {
|
||||
}
|
||||
}
|
||||
|
||||
func (x *Pack_UseItem_Resp) String() string {
|
||||
func (x *Items_UseItem_Resp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Pack_UseItem_Resp) ProtoMessage() {}
|
||||
func (*Items_UseItem_Resp) ProtoMessage() {}
|
||||
|
||||
func (x *Pack_UseItem_Resp) ProtoReflect() protoreflect.Message {
|
||||
func (x *Items_UseItem_Resp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_items_items_msg_proto_msgTypes[3]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -214,13 +214,13 @@ func (x *Pack_UseItem_Resp) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Pack_UseItem_Resp.ProtoReflect.Descriptor instead.
|
||||
func (*Pack_UseItem_Resp) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use Items_UseItem_Resp.ProtoReflect.Descriptor instead.
|
||||
func (*Items_UseItem_Resp) Descriptor() ([]byte, []int) {
|
||||
return file_items_items_msg_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
//出售道具请求sailitem
|
||||
type Pack_SellItem_Req struct {
|
||||
type Items_SellItem_Req struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
@ -230,8 +230,8 @@ type Pack_SellItem_Req struct {
|
||||
Amount uint32 `protobuf:"varint,3,opt,name=Amount,proto3" json:"Amount"` //使用数量
|
||||
}
|
||||
|
||||
func (x *Pack_SellItem_Req) Reset() {
|
||||
*x = Pack_SellItem_Req{}
|
||||
func (x *Items_SellItem_Req) Reset() {
|
||||
*x = Items_SellItem_Req{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_items_items_msg_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -239,13 +239,13 @@ func (x *Pack_SellItem_Req) Reset() {
|
||||
}
|
||||
}
|
||||
|
||||
func (x *Pack_SellItem_Req) String() string {
|
||||
func (x *Items_SellItem_Req) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Pack_SellItem_Req) ProtoMessage() {}
|
||||
func (*Items_SellItem_Req) ProtoMessage() {}
|
||||
|
||||
func (x *Pack_SellItem_Req) ProtoReflect() protoreflect.Message {
|
||||
func (x *Items_SellItem_Req) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_items_items_msg_proto_msgTypes[4]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -257,26 +257,26 @@ func (x *Pack_SellItem_Req) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Pack_SellItem_Req.ProtoReflect.Descriptor instead.
|
||||
func (*Pack_SellItem_Req) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use Items_SellItem_Req.ProtoReflect.Descriptor instead.
|
||||
func (*Items_SellItem_Req) Descriptor() ([]byte, []int) {
|
||||
return file_items_items_msg_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *Pack_SellItem_Req) GetGridId() int32 {
|
||||
func (x *Items_SellItem_Req) GetGridId() int32 {
|
||||
if x != nil {
|
||||
return x.GridId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Pack_SellItem_Req) GetItemId() int32 {
|
||||
func (x *Items_SellItem_Req) GetItemId() int32 {
|
||||
if x != nil {
|
||||
return x.ItemId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Pack_SellItem_Req) GetAmount() uint32 {
|
||||
func (x *Items_SellItem_Req) GetAmount() uint32 {
|
||||
if x != nil {
|
||||
return x.Amount
|
||||
}
|
||||
@ -284,14 +284,14 @@ func (x *Pack_SellItem_Req) GetAmount() uint32 {
|
||||
}
|
||||
|
||||
//出售道具请求 回应
|
||||
type Pack_SellItem_Resp struct {
|
||||
type Items_SellItem_Resp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *Pack_SellItem_Resp) Reset() {
|
||||
*x = Pack_SellItem_Resp{}
|
||||
func (x *Items_SellItem_Resp) Reset() {
|
||||
*x = Items_SellItem_Resp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_items_items_msg_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -299,13 +299,13 @@ func (x *Pack_SellItem_Resp) Reset() {
|
||||
}
|
||||
}
|
||||
|
||||
func (x *Pack_SellItem_Resp) String() string {
|
||||
func (x *Items_SellItem_Resp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Pack_SellItem_Resp) ProtoMessage() {}
|
||||
func (*Items_SellItem_Resp) ProtoMessage() {}
|
||||
|
||||
func (x *Pack_SellItem_Resp) ProtoReflect() protoreflect.Message {
|
||||
func (x *Items_SellItem_Resp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_items_items_msg_proto_msgTypes[5]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -317,8 +317,8 @@ func (x *Pack_SellItem_Resp) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Pack_SellItem_Resp.ProtoReflect.Descriptor instead.
|
||||
func (*Pack_SellItem_Resp) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use Items_SellItem_Resp.ProtoReflect.Descriptor instead.
|
||||
func (*Items_SellItem_Resp) Descriptor() ([]byte, []int) {
|
||||
return file_items_items_msg_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
@ -327,29 +327,29 @@ 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, 0x28, 0x0a,
|
||||
0x10, 0x50, 0x61, 0x63, 0x6b, 0x5f, 0x47, 0x65, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x5f, 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, 0x3b, 0x0a, 0x11, 0x50, 0x61, 0x63, 0x6b, 0x5f,
|
||||
0x47, 0x65, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x5f, 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, 0x5a, 0x0a, 0x10, 0x50, 0x61, 0x63, 0x6b, 0x5f, 0x55, 0x73, 0x65,
|
||||
0x49, 0x74, 0x65, 0x6d, 0x5f, 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, 0x50, 0x61, 0x63, 0x6b, 0x5f, 0x55, 0x73, 0x65, 0x49, 0x74, 0x65, 0x6d,
|
||||
0x5f, 0x52, 0x65, 0x73, 0x70, 0x22, 0x5b, 0x0a, 0x11, 0x50, 0x61, 0x63, 0x6b, 0x5f, 0x53, 0x65,
|
||||
0x6c, 0x6c, 0x49, 0x74, 0x65, 0x6d, 0x5f, 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, 0x14, 0x0a, 0x12, 0x50, 0x61, 0x63, 0x6b, 0x5f, 0x53, 0x65, 0x6c, 0x6c, 0x49,
|
||||
0x74, 0x65, 0x6d, 0x5f, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62,
|
||||
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x74, 0x65, 0x6d, 0x73, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x29, 0x0a,
|
||||
0x11, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x5f, 0x47, 0x65, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x5f, 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, 0x3c, 0x0a, 0x12, 0x49, 0x74, 0x65, 0x6d,
|
||||
0x73, 0x5f, 0x47, 0x65, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x5f, 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, 0x5b, 0x0a, 0x11, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x5f,
|
||||
0x55, 0x73, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x5f, 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, 0x14, 0x0a, 0x12, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x5f, 0x55, 0x73, 0x65,
|
||||
0x49, 0x74, 0x65, 0x6d, 0x5f, 0x52, 0x65, 0x73, 0x70, 0x22, 0x5c, 0x0a, 0x12, 0x49, 0x74, 0x65,
|
||||
0x6d, 0x73, 0x5f, 0x53, 0x65, 0x6c, 0x6c, 0x49, 0x74, 0x65, 0x6d, 0x5f, 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, 0x15, 0x0a, 0x13, 0x49, 0x74, 0x65, 0x6d, 0x73,
|
||||
0x5f, 0x53, 0x65, 0x6c, 0x6c, 0x49, 0x74, 0x65, 0x6d, 0x5f, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06,
|
||||
0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@ -366,16 +366,16 @@ func file_items_items_msg_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_items_items_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||||
var file_items_items_msg_proto_goTypes = []interface{}{
|
||||
(*Pack_Getlist_Req)(nil), // 0: Pack_Getlist_Req
|
||||
(*Pack_Getlist_Resp)(nil), // 1: Pack_Getlist_Resp
|
||||
(*Pack_UseItem_Req)(nil), // 2: Pack_UseItem_Req
|
||||
(*Pack_UseItem_Resp)(nil), // 3: Pack_UseItem_Resp
|
||||
(*Pack_SellItem_Req)(nil), // 4: Pack_SellItem_Req
|
||||
(*Pack_SellItem_Resp)(nil), // 5: Pack_SellItem_Resp
|
||||
(*DB_UserItemData)(nil), // 6: DB_UserItemData
|
||||
(*Items_Getlist_Req)(nil), // 0: Items_Getlist_Req
|
||||
(*Items_Getlist_Resp)(nil), // 1: Items_Getlist_Resp
|
||||
(*Items_UseItem_Req)(nil), // 2: Items_UseItem_Req
|
||||
(*Items_UseItem_Resp)(nil), // 3: Items_UseItem_Resp
|
||||
(*Items_SellItem_Req)(nil), // 4: Items_SellItem_Req
|
||||
(*Items_SellItem_Resp)(nil), // 5: Items_SellItem_Resp
|
||||
(*DB_UserItemData)(nil), // 6: DB_UserItemData
|
||||
}
|
||||
var file_items_items_msg_proto_depIdxs = []int32{
|
||||
6, // 0: Pack_Getlist_Resp.Grids:type_name -> DB_UserItemData
|
||||
6, // 0: Items_Getlist_Resp.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
|
||||
@ -391,7 +391,7 @@ func file_items_items_msg_proto_init() {
|
||||
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.(*Pack_Getlist_Req); i {
|
||||
switch v := v.(*Items_Getlist_Req); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -403,7 +403,7 @@ func file_items_items_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_items_items_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Pack_Getlist_Resp); i {
|
||||
switch v := v.(*Items_Getlist_Resp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -415,7 +415,7 @@ func file_items_items_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_items_items_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Pack_UseItem_Req); i {
|
||||
switch v := v.(*Items_UseItem_Req); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -427,7 +427,7 @@ func file_items_items_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_items_items_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Pack_UseItem_Resp); i {
|
||||
switch v := v.(*Items_UseItem_Resp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -439,7 +439,7 @@ func file_items_items_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_items_items_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Pack_SellItem_Req); i {
|
||||
switch v := v.(*Items_SellItem_Req); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -451,7 +451,7 @@ func file_items_items_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_items_items_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Pack_SellItem_Resp); i {
|
||||
switch v := v.(*Items_SellItem_Resp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
|
209
pb/pack_db.pb.go
209
pb/pack_db.pb.go
@ -1,209 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.0
|
||||
// protoc v3.20.0
|
||||
// source: pack/pack_db.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 DB_UserItemData struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
GridId string `protobuf:"bytes,1,opt,name=gridId,proto3" json:"gridId" bson:"_id"` // 背包格子Id
|
||||
UId string `protobuf:"bytes,2,opt,name=uId,proto3" json:"uId" bson:"uid"` // 用户id
|
||||
IsEmpty bool `protobuf:"varint,3,opt,name=isEmpty,proto3" json:"isEmpty" bson:"isEmpty"` // 是否是空格子
|
||||
ItemId int32 `protobuf:"varint,4,opt,name=itemId,proto3" json:"itemId" bson:"itemId"` // 存放物品的Id
|
||||
Amount uint32 `protobuf:"varint,5,opt,name=amount,proto3" json:"amount" bson:"amount"` // 存放物品的数量
|
||||
CTime int64 `protobuf:"varint,6,opt,name=cTime,proto3" json:"cTime" bson:"cTime"` // 物品获取时间
|
||||
ETime int64 `protobuf:"varint,7,opt,name=eTime,proto3" json:"eTime" bson:"eTime"` // 物品过期时间
|
||||
IsNewItem bool `protobuf:"varint,8,opt,name=isNewItem,proto3" json:"isNewItem" bson:"isNewItem"` // 是否是新的
|
||||
}
|
||||
|
||||
func (x *DB_UserItemData) Reset() {
|
||||
*x = DB_UserItemData{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_pack_pack_db_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *DB_UserItemData) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DB_UserItemData) ProtoMessage() {}
|
||||
|
||||
func (x *DB_UserItemData) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_pack_pack_db_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 DB_UserItemData.ProtoReflect.Descriptor instead.
|
||||
func (*DB_UserItemData) Descriptor() ([]byte, []int) {
|
||||
return file_pack_pack_db_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *DB_UserItemData) GetGridId() string {
|
||||
if x != nil {
|
||||
return x.GridId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DB_UserItemData) GetUId() string {
|
||||
if x != nil {
|
||||
return x.UId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DB_UserItemData) GetIsEmpty() bool {
|
||||
if x != nil {
|
||||
return x.IsEmpty
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *DB_UserItemData) GetItemId() int32 {
|
||||
if x != nil {
|
||||
return x.ItemId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DB_UserItemData) GetAmount() uint32 {
|
||||
if x != nil {
|
||||
return x.Amount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DB_UserItemData) GetCTime() int64 {
|
||||
if x != nil {
|
||||
return x.CTime
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DB_UserItemData) GetETime() int64 {
|
||||
if x != nil {
|
||||
return x.ETime
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DB_UserItemData) GetIsNewItem() bool {
|
||||
if x != nil {
|
||||
return x.IsNewItem
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var File_pack_pack_db_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_pack_pack_db_proto_rawDesc = []byte{
|
||||
0x0a, 0x12, 0x70, 0x61, 0x63, 0x6b, 0x2f, 0x70, 0x61, 0x63, 0x6b, 0x5f, 0x64, 0x62, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcf, 0x01, 0x0a, 0x0f, 0x44, 0x42, 0x5f, 0x55, 0x73, 0x65, 0x72,
|
||||
0x49, 0x74, 0x65, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x72, 0x69, 0x64,
|
||||
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x67, 0x72, 0x69, 0x64, 0x49, 0x64,
|
||||
0x12, 0x10, 0x0a, 0x03, 0x75, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75,
|
||||
0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x73, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x18, 0x03, 0x20,
|
||||
0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06,
|
||||
0x69, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x69, 0x74,
|
||||
0x65, 0x6d, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05,
|
||||
0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05,
|
||||
0x63, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x54, 0x69,
|
||||
0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28,
|
||||
0x03, 0x52, 0x05, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x73, 0x4e, 0x65,
|
||||
0x77, 0x49, 0x74, 0x65, 0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x4e,
|
||||
0x65, 0x77, 0x49, 0x74, 0x65, 0x6d, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_pack_pack_db_proto_rawDescOnce sync.Once
|
||||
file_pack_pack_db_proto_rawDescData = file_pack_pack_db_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_pack_pack_db_proto_rawDescGZIP() []byte {
|
||||
file_pack_pack_db_proto_rawDescOnce.Do(func() {
|
||||
file_pack_pack_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_pack_pack_db_proto_rawDescData)
|
||||
})
|
||||
return file_pack_pack_db_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_pack_pack_db_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_pack_pack_db_proto_goTypes = []interface{}{
|
||||
(*DB_UserItemData)(nil), // 0: DB_UserItemData
|
||||
}
|
||||
var file_pack_pack_db_proto_depIdxs = []int32{
|
||||
0, // [0:0] is the sub-list for method output_type
|
||||
0, // [0:0] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_pack_pack_db_proto_init() }
|
||||
func file_pack_pack_db_proto_init() {
|
||||
if File_pack_pack_db_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_pack_pack_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DB_UserItemData); 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_pack_pack_db_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_pack_pack_db_proto_goTypes,
|
||||
DependencyIndexes: file_pack_pack_db_proto_depIdxs,
|
||||
MessageInfos: file_pack_pack_db_proto_msgTypes,
|
||||
}.Build()
|
||||
File_pack_pack_db_proto = out.File
|
||||
file_pack_pack_db_proto_rawDesc = nil
|
||||
file_pack_pack_db_proto_goTypes = nil
|
||||
file_pack_pack_db_proto_depIdxs = nil
|
||||
}
|
@ -1,484 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.0
|
||||
// protoc v3.20.0
|
||||
// source: pack/pack_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 Pack_Getlist_Req struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
IType int32 `protobuf:"varint,1,opt,name=IType,proto3" json:"IType"` //道具类型
|
||||
}
|
||||
|
||||
func (x *Pack_Getlist_Req) Reset() {
|
||||
*x = Pack_Getlist_Req{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_pack_pack_msg_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *Pack_Getlist_Req) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Pack_Getlist_Req) ProtoMessage() {}
|
||||
|
||||
func (x *Pack_Getlist_Req) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_pack_pack_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 Pack_Getlist_Req.ProtoReflect.Descriptor instead.
|
||||
func (*Pack_Getlist_Req) Descriptor() ([]byte, []int) {
|
||||
return file_pack_pack_msg_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *Pack_Getlist_Req) GetIType() int32 {
|
||||
if x != nil {
|
||||
return x.IType
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
//查询用户背包请求 回应
|
||||
type Pack_Getlist_Resp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Grids []*DB_UserItemData `protobuf:"bytes,1,rep,name=Grids,proto3" json:"Grids"` //用户背包列表
|
||||
}
|
||||
|
||||
func (x *Pack_Getlist_Resp) Reset() {
|
||||
*x = Pack_Getlist_Resp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_pack_pack_msg_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *Pack_Getlist_Resp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Pack_Getlist_Resp) ProtoMessage() {}
|
||||
|
||||
func (x *Pack_Getlist_Resp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_pack_pack_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 Pack_Getlist_Resp.ProtoReflect.Descriptor instead.
|
||||
func (*Pack_Getlist_Resp) Descriptor() ([]byte, []int) {
|
||||
return file_pack_pack_msg_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *Pack_Getlist_Resp) GetGrids() []*DB_UserItemData {
|
||||
if x != nil {
|
||||
return x.Grids
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
//使用物品请求
|
||||
type Pack_UseItem_Req 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 *Pack_UseItem_Req) Reset() {
|
||||
*x = Pack_UseItem_Req{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_pack_pack_msg_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *Pack_UseItem_Req) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Pack_UseItem_Req) ProtoMessage() {}
|
||||
|
||||
func (x *Pack_UseItem_Req) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_pack_pack_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 Pack_UseItem_Req.ProtoReflect.Descriptor instead.
|
||||
func (*Pack_UseItem_Req) Descriptor() ([]byte, []int) {
|
||||
return file_pack_pack_msg_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *Pack_UseItem_Req) GetGridId() int32 {
|
||||
if x != nil {
|
||||
return x.GridId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Pack_UseItem_Req) GetItemId() int32 {
|
||||
if x != nil {
|
||||
return x.ItemId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Pack_UseItem_Req) GetAmount() uint32 {
|
||||
if x != nil {
|
||||
return x.Amount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
//使用物品请求 回应
|
||||
type Pack_UseItem_Resp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *Pack_UseItem_Resp) Reset() {
|
||||
*x = Pack_UseItem_Resp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_pack_pack_msg_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *Pack_UseItem_Resp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Pack_UseItem_Resp) ProtoMessage() {}
|
||||
|
||||
func (x *Pack_UseItem_Resp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_pack_pack_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 Pack_UseItem_Resp.ProtoReflect.Descriptor instead.
|
||||
func (*Pack_UseItem_Resp) Descriptor() ([]byte, []int) {
|
||||
return file_pack_pack_msg_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
//出售道具请求sailitem
|
||||
type Pack_SellItem_Req 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 *Pack_SellItem_Req) Reset() {
|
||||
*x = Pack_SellItem_Req{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_pack_pack_msg_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *Pack_SellItem_Req) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Pack_SellItem_Req) ProtoMessage() {}
|
||||
|
||||
func (x *Pack_SellItem_Req) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_pack_pack_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 Pack_SellItem_Req.ProtoReflect.Descriptor instead.
|
||||
func (*Pack_SellItem_Req) Descriptor() ([]byte, []int) {
|
||||
return file_pack_pack_msg_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *Pack_SellItem_Req) GetGridId() int32 {
|
||||
if x != nil {
|
||||
return x.GridId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Pack_SellItem_Req) GetItemId() int32 {
|
||||
if x != nil {
|
||||
return x.ItemId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Pack_SellItem_Req) GetAmount() uint32 {
|
||||
if x != nil {
|
||||
return x.Amount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
//出售道具请求 回应
|
||||
type Pack_SellItem_Resp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *Pack_SellItem_Resp) Reset() {
|
||||
*x = Pack_SellItem_Resp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_pack_pack_msg_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *Pack_SellItem_Resp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Pack_SellItem_Resp) ProtoMessage() {}
|
||||
|
||||
func (x *Pack_SellItem_Resp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_pack_pack_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 Pack_SellItem_Resp.ProtoReflect.Descriptor instead.
|
||||
func (*Pack_SellItem_Resp) Descriptor() ([]byte, []int) {
|
||||
return file_pack_pack_msg_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
var File_pack_pack_msg_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_pack_pack_msg_proto_rawDesc = []byte{
|
||||
0x0a, 0x13, 0x70, 0x61, 0x63, 0x6b, 0x2f, 0x70, 0x61, 0x63, 0x6b, 0x5f, 0x6d, 0x73, 0x67, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x70, 0x61, 0x63, 0x6b, 0x2f, 0x70, 0x61, 0x63, 0x6b,
|
||||
0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x28, 0x0a, 0x10, 0x50, 0x61, 0x63,
|
||||
0x6b, 0x5f, 0x47, 0x65, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x5f, 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, 0x3b, 0x0a, 0x11, 0x50, 0x61, 0x63, 0x6b, 0x5f, 0x47, 0x65, 0x74, 0x6c,
|
||||
0x69, 0x73, 0x74, 0x5f, 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, 0x5a, 0x0a, 0x10, 0x50, 0x61, 0x63, 0x6b, 0x5f, 0x55, 0x73, 0x65, 0x49, 0x74, 0x65, 0x6d,
|
||||
0x5f, 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,
|
||||
0x50, 0x61, 0x63, 0x6b, 0x5f, 0x55, 0x73, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x5f, 0x52, 0x65, 0x73,
|
||||
0x70, 0x22, 0x5b, 0x0a, 0x11, 0x50, 0x61, 0x63, 0x6b, 0x5f, 0x53, 0x65, 0x6c, 0x6c, 0x49, 0x74,
|
||||
0x65, 0x6d, 0x5f, 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, 0x14,
|
||||
0x0a, 0x12, 0x50, 0x61, 0x63, 0x6b, 0x5f, 0x53, 0x65, 0x6c, 0x6c, 0x49, 0x74, 0x65, 0x6d, 0x5f,
|
||||
0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_pack_pack_msg_proto_rawDescOnce sync.Once
|
||||
file_pack_pack_msg_proto_rawDescData = file_pack_pack_msg_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_pack_pack_msg_proto_rawDescGZIP() []byte {
|
||||
file_pack_pack_msg_proto_rawDescOnce.Do(func() {
|
||||
file_pack_pack_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_pack_pack_msg_proto_rawDescData)
|
||||
})
|
||||
return file_pack_pack_msg_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_pack_pack_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||||
var file_pack_pack_msg_proto_goTypes = []interface{}{
|
||||
(*Pack_Getlist_Req)(nil), // 0: Pack_Getlist_Req
|
||||
(*Pack_Getlist_Resp)(nil), // 1: Pack_Getlist_Resp
|
||||
(*Pack_UseItem_Req)(nil), // 2: Pack_UseItem_Req
|
||||
(*Pack_UseItem_Resp)(nil), // 3: Pack_UseItem_Resp
|
||||
(*Pack_SellItem_Req)(nil), // 4: Pack_SellItem_Req
|
||||
(*Pack_SellItem_Resp)(nil), // 5: Pack_SellItem_Resp
|
||||
(*DB_UserItemData)(nil), // 6: DB_UserItemData
|
||||
}
|
||||
var file_pack_pack_msg_proto_depIdxs = []int32{
|
||||
6, // 0: Pack_Getlist_Resp.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_pack_pack_msg_proto_init() }
|
||||
func file_pack_pack_msg_proto_init() {
|
||||
if File_pack_pack_msg_proto != nil {
|
||||
return
|
||||
}
|
||||
file_pack_pack_db_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_pack_pack_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Pack_Getlist_Req); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_pack_pack_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Pack_Getlist_Resp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_pack_pack_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Pack_UseItem_Req); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_pack_pack_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Pack_UseItem_Resp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_pack_pack_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Pack_SellItem_Req); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_pack_pack_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Pack_SellItem_Resp); 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_pack_pack_msg_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 6,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_pack_pack_msg_proto_goTypes,
|
||||
DependencyIndexes: file_pack_pack_msg_proto_depIdxs,
|
||||
MessageInfos: file_pack_pack_msg_proto_msgTypes,
|
||||
}.Build()
|
||||
File_pack_pack_msg_proto = out.File
|
||||
file_pack_pack_msg_proto_rawDesc = nil
|
||||
file_pack_pack_msg_proto_goTypes = nil
|
||||
file_pack_pack_msg_proto_depIdxs = nil
|
||||
}
|
@ -3,35 +3,35 @@ option go_package = ".;pb";
|
||||
import "items/items_db.proto";
|
||||
|
||||
//查询用户背包请求
|
||||
message Pack_Getlist_Req {
|
||||
message Items_Getlist_Req {
|
||||
int32 IType = 1; //道具类型
|
||||
}
|
||||
|
||||
//查询用户背包请求 回应
|
||||
message Pack_Getlist_Resp {
|
||||
message Items_Getlist_Resp {
|
||||
repeated DB_UserItemData Grids = 1; //用户背包列表
|
||||
}
|
||||
|
||||
//使用物品请求
|
||||
message Pack_UseItem_Req {
|
||||
message Items_UseItem_Req {
|
||||
int32 GridId = 1; //格子Id
|
||||
int32 ItemId = 2; //物品Id
|
||||
uint32 Amount = 3; //使用数量
|
||||
}
|
||||
|
||||
//使用物品请求 回应
|
||||
message Pack_UseItem_Resp {
|
||||
message Items_UseItem_Resp {
|
||||
|
||||
}
|
||||
|
||||
//出售道具请求sailitem
|
||||
message Pack_SellItem_Req {
|
||||
message Items_SellItem_Req {
|
||||
int32 GridId = 1; //格子Id
|
||||
int32 ItemId = 2; //物品Id
|
||||
uint32 Amount = 3; //使用数量
|
||||
}
|
||||
|
||||
//出售道具请求 回应
|
||||
message Pack_SellItem_Resp {
|
||||
message Items_SellItem_Resp {
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user