// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.20.1 // source: wallet.proto package wallet import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/known/timestamppb" 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 GoldType int32 const ( GoldType_typeNone GoldType = 0 GoldType_typeCharge GoldType = 59 GoldType_typeAdd GoldType = 60 ) // Enum value maps for GoldType. var ( GoldType_name = map[int32]string{ 0: "typeNone", 59: "typeCharge", 60: "typeAdd", } GoldType_value = map[string]int32{ "typeNone": 0, "typeCharge": 59, "typeAdd": 60, } ) func (x GoldType) Enum() *GoldType { p := new(GoldType) *p = x return p } func (x GoldType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (GoldType) Descriptor() protoreflect.EnumDescriptor { return file_wallet_proto_enumTypes[0].Descriptor() } func (GoldType) Type() protoreflect.EnumType { return &file_wallet_proto_enumTypes[0] } func (x GoldType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use GoldType.Descriptor instead. func (GoldType) EnumDescriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{0} } type AddGoldReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId" validate:"required"` // @gotags: validate:"required" GoldNum float32 `protobuf:"fixed32,2,opt,name=goldNum,proto3" json:"goldNum" validate:"required,gt=0"` // @gotags: validate:"required,gt=0" Type GoldType `protobuf:"varint,3,opt,name=type,proto3,enum=GoldType" json:"type"` AdminUserId int64 `protobuf:"varint,4,opt,name=adminUserId,proto3" json:"adminUserId"` Remark string `protobuf:"bytes,5,opt,name=remark,proto3" json:"remark"` } func (x *AddGoldReq) Reset() { *x = AddGoldReq{} if protoimpl.UnsafeEnabled { mi := &file_wallet_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *AddGoldReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*AddGoldReq) ProtoMessage() {} func (x *AddGoldReq) ProtoReflect() protoreflect.Message { mi := &file_wallet_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 AddGoldReq.ProtoReflect.Descriptor instead. func (*AddGoldReq) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{0} } func (x *AddGoldReq) GetUserId() int64 { if x != nil { return x.UserId } return 0 } func (x *AddGoldReq) GetGoldNum() float32 { if x != nil { return x.GoldNum } return 0 } func (x *AddGoldReq) GetType() GoldType { if x != nil { return x.Type } return GoldType_typeNone } func (x *AddGoldReq) GetAdminUserId() int64 { if x != nil { return x.AdminUserId } return 0 } func (x *AddGoldReq) GetRemark() string { if x != nil { return x.Remark } return "" } type AddGoldResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } func (x *AddGoldResp) Reset() { *x = AddGoldResp{} if protoimpl.UnsafeEnabled { mi := &file_wallet_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *AddGoldResp) String() string { return protoimpl.X.MessageStringOf(x) } func (*AddGoldResp) ProtoMessage() {} func (x *AddGoldResp) ProtoReflect() protoreflect.Message { mi := &file_wallet_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 AddGoldResp.ProtoReflect.Descriptor instead. func (*AddGoldResp) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{1} } type ChargeOneReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId" validate:"required"` // @gotags: validate:"required" GoldNum float32 `protobuf:"fixed32,2,opt,name=goldNum,proto3" json:"goldNum" validate:"required,gt=0"` // @gotags: validate:"required,gt=0" Type GoldType `protobuf:"varint,3,opt,name=type,proto3,enum=GoldType" json:"type"` } func (x *ChargeOneReq) Reset() { *x = ChargeOneReq{} if protoimpl.UnsafeEnabled { mi := &file_wallet_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ChargeOneReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*ChargeOneReq) ProtoMessage() {} func (x *ChargeOneReq) ProtoReflect() protoreflect.Message { mi := &file_wallet_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 ChargeOneReq.ProtoReflect.Descriptor instead. func (*ChargeOneReq) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{2} } func (x *ChargeOneReq) GetUserId() int64 { if x != nil { return x.UserId } return 0 } func (x *ChargeOneReq) GetGoldNum() float32 { if x != nil { return x.GoldNum } return 0 } func (x *ChargeOneReq) GetType() GoldType { if x != nil { return x.Type } return GoldType_typeNone } type ChargeOneResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } func (x *ChargeOneResp) Reset() { *x = ChargeOneResp{} if protoimpl.UnsafeEnabled { mi := &file_wallet_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ChargeOneResp) String() string { return protoimpl.X.MessageStringOf(x) } func (*ChargeOneResp) ProtoMessage() {} func (x *ChargeOneResp) ProtoReflect() protoreflect.Message { mi := &file_wallet_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 ChargeOneResp.ProtoReflect.Descriptor instead. func (*ChargeOneResp) Descriptor() ([]byte, []int) { return file_wallet_proto_rawDescGZIP(), []int{3} } var File_wallet_proto protoreflect.FileDescriptor var file_wallet_proto_rawDesc = []byte{ 0x0a, 0x0c, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x97, 0x01, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x47, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x6f, 0x6c, 0x64, 0x4e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x07, 0x67, 0x6f, 0x6c, 0x64, 0x4e, 0x75, 0x6d, 0x12, 0x1d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x47, 0x6f, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x22, 0x0d, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x47, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x73, 0x70, 0x22, 0x5f, 0x0a, 0x0c, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x4f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x6f, 0x6c, 0x64, 0x4e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x07, 0x67, 0x6f, 0x6c, 0x64, 0x4e, 0x75, 0x6d, 0x12, 0x1d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x47, 0x6f, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x0f, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x4f, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x2a, 0x35, 0x0a, 0x08, 0x47, 0x6f, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x6f, 0x6e, 0x65, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x74, 0x79, 0x70, 0x65, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x10, 0x3b, 0x12, 0x0b, 0x0a, 0x07, 0x74, 0x79, 0x70, 0x65, 0x41, 0x64, 0x64, 0x10, 0x3c, 0x32, 0x5e, 0x0a, 0x06, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x12, 0x26, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x47, 0x6f, 0x6c, 0x64, 0x12, 0x0b, 0x2e, 0x41, 0x64, 0x64, 0x47, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x41, 0x64, 0x64, 0x47, 0x6f, 0x6c, 0x64, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x2c, 0x0a, 0x09, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x4f, 0x6e, 0x65, 0x12, 0x0d, 0x2e, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x4f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x4f, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x42, 0x0b, 0x5a, 0x09, 0x2e, 0x2f, 0x3b, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_wallet_proto_rawDescOnce sync.Once file_wallet_proto_rawDescData = file_wallet_proto_rawDesc ) func file_wallet_proto_rawDescGZIP() []byte { file_wallet_proto_rawDescOnce.Do(func() { file_wallet_proto_rawDescData = protoimpl.X.CompressGZIP(file_wallet_proto_rawDescData) }) return file_wallet_proto_rawDescData } var file_wallet_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_wallet_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_wallet_proto_goTypes = []interface{}{ (GoldType)(0), // 0: GoldType (*AddGoldReq)(nil), // 1: AddGoldReq (*AddGoldResp)(nil), // 2: AddGoldResp (*ChargeOneReq)(nil), // 3: ChargeOneReq (*ChargeOneResp)(nil), // 4: ChargeOneResp } var file_wallet_proto_depIdxs = []int32{ 0, // 0: AddGoldReq.type:type_name -> GoldType 0, // 1: ChargeOneReq.type:type_name -> GoldType 1, // 2: Wallet.AddGold:input_type -> AddGoldReq 3, // 3: Wallet.ChargeOne:input_type -> ChargeOneReq 2, // 4: Wallet.AddGold:output_type -> AddGoldResp 4, // 5: Wallet.ChargeOne:output_type -> ChargeOneResp 4, // [4:6] is the sub-list for method output_type 2, // [2:4] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name 2, // [2:2] is the sub-list for extension extendee 0, // [0:2] is the sub-list for field type_name } func init() { file_wallet_proto_init() } func file_wallet_proto_init() { if File_wallet_proto != nil { return } if !protoimpl.UnsafeEnabled { file_wallet_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AddGoldReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_wallet_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AddGoldResp); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_wallet_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ChargeOneReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_wallet_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ChargeOneResp); 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_wallet_proto_rawDesc, NumEnums: 1, NumMessages: 4, NumExtensions: 0, NumServices: 1, }, GoTypes: file_wallet_proto_goTypes, DependencyIndexes: file_wallet_proto_depIdxs, EnumInfos: file_wallet_proto_enumTypes, MessageInfos: file_wallet_proto_msgTypes, }.Build() File_wallet_proto = out.File file_wallet_proto_rawDesc = nil file_wallet_proto_goTypes = nil file_wallet_proto_depIdxs = nil }