|
@@ -0,0 +1,442 @@
|
|
|
+// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
+// versions:
|
|
|
+// protoc-gen-go v1.23.0
|
|
|
+// protoc v3.11.4
|
|
|
+// source: payCenter.proto
|
|
|
+
|
|
|
+package pb
|
|
|
+
|
|
|
+import (
|
|
|
+ context "context"
|
|
|
+ proto "github.com/golang/protobuf/proto"
|
|
|
+ grpc "google.golang.org/grpc"
|
|
|
+ codes "google.golang.org/grpc/codes"
|
|
|
+ status "google.golang.org/grpc/status"
|
|
|
+ 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)
|
|
|
+)
|
|
|
+
|
|
|
+// This is a compile-time assertion that a sufficiently up-to-date version
|
|
|
+// of the legacy proto package is being used.
|
|
|
+const _ = proto.ProtoPackageIsVersion4
|
|
|
+
|
|
|
+type GetPayCodeReq struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
|
|
|
+ OrderCode string `protobuf:"bytes,2,opt,name=order_code,json=orderCode,proto3" json:"order_code,omitempty"`
|
|
|
+ PayWay string `protobuf:"bytes,3,opt,name=pay_way,json=payWay,proto3" json:"pay_way,omitempty"`
|
|
|
+ Money int64 `protobuf:"varint,4,opt,name=money,proto3" json:"money,omitempty"`
|
|
|
+ SOpenid string `protobuf:"bytes,5,opt,name=s_openid,json=sOpenid,proto3" json:"s_openid,omitempty"`
|
|
|
+ ProductType string `protobuf:"bytes,6,opt,name=product_type,json=productType,proto3" json:"product_type,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetPayCodeReq) Reset() {
|
|
|
+ *x = GetPayCodeReq{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_payCenter_proto_msgTypes[0]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetPayCodeReq) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*GetPayCodeReq) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *GetPayCodeReq) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_payCenter_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 GetPayCodeReq.ProtoReflect.Descriptor instead.
|
|
|
+func (*GetPayCodeReq) Descriptor() ([]byte, []int) {
|
|
|
+ return file_payCenter_proto_rawDescGZIP(), []int{0}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetPayCodeReq) GetAppid() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Appid
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetPayCodeReq) GetOrderCode() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.OrderCode
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetPayCodeReq) GetPayWay() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.PayWay
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetPayCodeReq) GetMoney() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.Money
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetPayCodeReq) GetSOpenid() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.SOpenid
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetPayCodeReq) GetProductType() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.ProductType
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+type GetPayCodeResp struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ ErrorCode int64 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`
|
|
|
+ ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"`
|
|
|
+ Data *PayCode `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetPayCodeResp) Reset() {
|
|
|
+ *x = GetPayCodeResp{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_payCenter_proto_msgTypes[1]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetPayCodeResp) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*GetPayCodeResp) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *GetPayCodeResp) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_payCenter_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 GetPayCodeResp.ProtoReflect.Descriptor instead.
|
|
|
+func (*GetPayCodeResp) Descriptor() ([]byte, []int) {
|
|
|
+ return file_payCenter_proto_rawDescGZIP(), []int{1}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetPayCodeResp) GetErrorCode() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.ErrorCode
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetPayCodeResp) GetErrorMsg() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.ErrorMsg
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetPayCodeResp) GetData() *PayCode {
|
|
|
+ if x != nil {
|
|
|
+ return x.Data
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+type PayCode struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ CodeUrl string `protobuf:"bytes,1,opt,name=code_url,json=codeUrl,proto3" json:"code_url,omitempty"`
|
|
|
+ Timeout string `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *PayCode) Reset() {
|
|
|
+ *x = PayCode{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_payCenter_proto_msgTypes[2]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *PayCode) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*PayCode) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *PayCode) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_payCenter_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 PayCode.ProtoReflect.Descriptor instead.
|
|
|
+func (*PayCode) Descriptor() ([]byte, []int) {
|
|
|
+ return file_payCenter_proto_rawDescGZIP(), []int{2}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *PayCode) GetCodeUrl() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.CodeUrl
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *PayCode) GetTimeout() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Timeout
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+var File_payCenter_proto protoreflect.FileDescriptor
|
|
|
+
|
|
|
+var file_payCenter_proto_rawDesc = []byte{
|
|
|
+ 0x0a, 0x0f, 0x70, 0x61, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
|
|
+ 0x6f, 0x22, 0xb1, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x43, 0x6f, 0x64, 0x65,
|
|
|
+ 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
|
|
+ 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x72, 0x64,
|
|
|
+ 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f,
|
|
|
+ 0x72, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x5f,
|
|
|
+ 0x77, 0x61, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x79, 0x57, 0x61,
|
|
|
+ 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x6e, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03,
|
|
|
+ 0x52, 0x05, 0x6d, 0x6f, 0x6e, 0x65, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x6f, 0x70, 0x65,
|
|
|
+ 0x6e, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x4f, 0x70, 0x65, 0x6e,
|
|
|
+ 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x5f, 0x74, 0x79,
|
|
|
+ 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63,
|
|
|
+ 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x6a, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x43,
|
|
|
+ 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72,
|
|
|
+ 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72,
|
|
|
+ 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f,
|
|
|
+ 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72,
|
|
|
+ 0x4d, 0x73, 0x67, 0x12, 0x1c, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28,
|
|
|
+ 0x0b, 0x32, 0x08, 0x2e, 0x50, 0x61, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74,
|
|
|
+ 0x61, 0x22, 0x3e, 0x0a, 0x07, 0x50, 0x61, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x19, 0x0a, 0x08,
|
|
|
+ 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
|
|
|
+ 0x63, 0x6f, 0x64, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f,
|
|
|
+ 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75,
|
|
|
+ 0x74, 0x32, 0x3a, 0x0a, 0x09, 0x50, 0x61, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x2d,
|
|
|
+ 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x2e, 0x47,
|
|
|
+ 0x65, 0x74, 0x50, 0x61, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x47,
|
|
|
+ 0x65, 0x74, 0x50, 0x61, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a,
|
|
|
+ 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
+}
|
|
|
+
|
|
|
+var (
|
|
|
+ file_payCenter_proto_rawDescOnce sync.Once
|
|
|
+ file_payCenter_proto_rawDescData = file_payCenter_proto_rawDesc
|
|
|
+)
|
|
|
+
|
|
|
+func file_payCenter_proto_rawDescGZIP() []byte {
|
|
|
+ file_payCenter_proto_rawDescOnce.Do(func() {
|
|
|
+ file_payCenter_proto_rawDescData = protoimpl.X.CompressGZIP(file_payCenter_proto_rawDescData)
|
|
|
+ })
|
|
|
+ return file_payCenter_proto_rawDescData
|
|
|
+}
|
|
|
+
|
|
|
+var file_payCenter_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
|
+var file_payCenter_proto_goTypes = []interface{}{
|
|
|
+ (*GetPayCodeReq)(nil), // 0: GetPayCodeReq
|
|
|
+ (*GetPayCodeResp)(nil), // 1: GetPayCodeResp
|
|
|
+ (*PayCode)(nil), // 2: PayCode
|
|
|
+}
|
|
|
+var file_payCenter_proto_depIdxs = []int32{
|
|
|
+ 2, // 0: GetPayCodeResp.data:type_name -> PayCode
|
|
|
+ 0, // 1: PayCenter.GetPayCode:input_type -> GetPayCodeReq
|
|
|
+ 1, // 2: PayCenter.GetPayCode:output_type -> GetPayCodeResp
|
|
|
+ 2, // [2:3] is the sub-list for method output_type
|
|
|
+ 1, // [1:2] 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_payCenter_proto_init() }
|
|
|
+func file_payCenter_proto_init() {
|
|
|
+ if File_payCenter_proto != nil {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if !protoimpl.UnsafeEnabled {
|
|
|
+ file_payCenter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*GetPayCodeReq); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_payCenter_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*GetPayCodeResp); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_payCenter_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*PayCode); 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_payCenter_proto_rawDesc,
|
|
|
+ NumEnums: 0,
|
|
|
+ NumMessages: 3,
|
|
|
+ NumExtensions: 0,
|
|
|
+ NumServices: 1,
|
|
|
+ },
|
|
|
+ GoTypes: file_payCenter_proto_goTypes,
|
|
|
+ DependencyIndexes: file_payCenter_proto_depIdxs,
|
|
|
+ MessageInfos: file_payCenter_proto_msgTypes,
|
|
|
+ }.Build()
|
|
|
+ File_payCenter_proto = out.File
|
|
|
+ file_payCenter_proto_rawDesc = nil
|
|
|
+ file_payCenter_proto_goTypes = nil
|
|
|
+ file_payCenter_proto_depIdxs = nil
|
|
|
+}
|
|
|
+
|
|
|
+// Reference imports to suppress errors if they are not otherwise used.
|
|
|
+var _ context.Context
|
|
|
+var _ grpc.ClientConnInterface
|
|
|
+
|
|
|
+// This is a compile-time assertion to ensure that this generated file
|
|
|
+// is compatible with the grpc package it is being compiled against.
|
|
|
+const _ = grpc.SupportPackageIsVersion6
|
|
|
+
|
|
|
+// PayCenterClient is the client API for PayCenter service.
|
|
|
+//
|
|
|
+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
+type PayCenterClient interface {
|
|
|
+ //获取支付二维码
|
|
|
+ GetPayCode(ctx context.Context, in *GetPayCodeReq, opts ...grpc.CallOption) (*GetPayCodeResp, error)
|
|
|
+}
|
|
|
+
|
|
|
+type payCenterClient struct {
|
|
|
+ cc grpc.ClientConnInterface
|
|
|
+}
|
|
|
+
|
|
|
+func NewPayCenterClient(cc grpc.ClientConnInterface) PayCenterClient {
|
|
|
+ return &payCenterClient{cc}
|
|
|
+}
|
|
|
+
|
|
|
+func (c *payCenterClient) GetPayCode(ctx context.Context, in *GetPayCodeReq, opts ...grpc.CallOption) (*GetPayCodeResp, error) {
|
|
|
+ out := new(GetPayCodeResp)
|
|
|
+ err := c.cc.Invoke(ctx, "/PayCenter/GetPayCode", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
+// PayCenterServer is the server API for PayCenter service.
|
|
|
+type PayCenterServer interface {
|
|
|
+ //获取支付二维码
|
|
|
+ GetPayCode(context.Context, *GetPayCodeReq) (*GetPayCodeResp, error)
|
|
|
+}
|
|
|
+
|
|
|
+// UnimplementedPayCenterServer can be embedded to have forward compatible implementations.
|
|
|
+type UnimplementedPayCenterServer struct {
|
|
|
+}
|
|
|
+
|
|
|
+func (*UnimplementedPayCenterServer) GetPayCode(context.Context, *GetPayCodeReq) (*GetPayCodeResp, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method GetPayCode not implemented")
|
|
|
+}
|
|
|
+
|
|
|
+func RegisterPayCenterServer(s *grpc.Server, srv PayCenterServer) {
|
|
|
+ s.RegisterService(&_PayCenter_serviceDesc, srv)
|
|
|
+}
|
|
|
+
|
|
|
+func _PayCenter_GetPayCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(GetPayCodeReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(PayCenterServer).GetPayCode(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/PayCenter/GetPayCode",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(PayCenterServer).GetPayCode(ctx, req.(*GetPayCodeReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+var _PayCenter_serviceDesc = grpc.ServiceDesc{
|
|
|
+ ServiceName: "PayCenter",
|
|
|
+ HandlerType: (*PayCenterServer)(nil),
|
|
|
+ Methods: []grpc.MethodDesc{
|
|
|
+ {
|
|
|
+ MethodName: "GetPayCode",
|
|
|
+ Handler: _PayCenter_GetPayCode_Handler,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ Streams: []grpc.StreamDesc{},
|
|
|
+ Metadata: "payCenter.proto",
|
|
|
+}
|