refactor: centralize protobuf and remove go-zero

This commit is contained in:
2026-08-09 15:10:19 +08:00
parent 5cc5fd92ed
commit 4bbed3156c
357 changed files with 14208 additions and 19903 deletions

View File

@@ -1,8 +1,8 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.8
// protoc (unknown)
// source: alipay.proto
// protoc-gen-go v1.36.11
// protoc v7.35.0
// source: module/finance/wallet/proto/alipay.proto
package wallet
@@ -34,7 +34,7 @@ type AlipayTradeWapPayRequest struct {
func (x *AlipayTradeWapPayRequest) Reset() {
*x = AlipayTradeWapPayRequest{}
mi := &file_alipay_proto_msgTypes[0]
mi := &file_module_finance_wallet_proto_alipay_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -46,7 +46,7 @@ func (x *AlipayTradeWapPayRequest) String() string {
func (*AlipayTradeWapPayRequest) ProtoMessage() {}
func (x *AlipayTradeWapPayRequest) ProtoReflect() protoreflect.Message {
mi := &file_alipay_proto_msgTypes[0]
mi := &file_module_finance_wallet_proto_alipay_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -59,7 +59,7 @@ func (x *AlipayTradeWapPayRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use AlipayTradeWapPayRequest.ProtoReflect.Descriptor instead.
func (*AlipayTradeWapPayRequest) Descriptor() ([]byte, []int) {
return file_alipay_proto_rawDescGZIP(), []int{0}
return file_module_finance_wallet_proto_alipay_proto_rawDescGZIP(), []int{0}
}
func (x *AlipayTradeWapPayRequest) GetUserIdentification() string {
@@ -106,7 +106,7 @@ type AlipayTradeWapPayReply struct {
func (x *AlipayTradeWapPayReply) Reset() {
*x = AlipayTradeWapPayReply{}
mi := &file_alipay_proto_msgTypes[1]
mi := &file_module_finance_wallet_proto_alipay_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -118,7 +118,7 @@ func (x *AlipayTradeWapPayReply) String() string {
func (*AlipayTradeWapPayReply) ProtoMessage() {}
func (x *AlipayTradeWapPayReply) ProtoReflect() protoreflect.Message {
mi := &file_alipay_proto_msgTypes[1]
mi := &file_module_finance_wallet_proto_alipay_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -131,7 +131,7 @@ func (x *AlipayTradeWapPayReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use AlipayTradeWapPayReply.ProtoReflect.Descriptor instead.
func (*AlipayTradeWapPayReply) Descriptor() ([]byte, []int) {
return file_alipay_proto_rawDescGZIP(), []int{1}
return file_module_finance_wallet_proto_alipay_proto_rawDescGZIP(), []int{1}
}
func (x *AlipayTradeWapPayReply) GetPayUrl() string {
@@ -154,7 +154,7 @@ type AlipayTradePagePayRequest struct {
func (x *AlipayTradePagePayRequest) Reset() {
*x = AlipayTradePagePayRequest{}
mi := &file_alipay_proto_msgTypes[2]
mi := &file_module_finance_wallet_proto_alipay_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -166,7 +166,7 @@ func (x *AlipayTradePagePayRequest) String() string {
func (*AlipayTradePagePayRequest) ProtoMessage() {}
func (x *AlipayTradePagePayRequest) ProtoReflect() protoreflect.Message {
mi := &file_alipay_proto_msgTypes[2]
mi := &file_module_finance_wallet_proto_alipay_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -179,7 +179,7 @@ func (x *AlipayTradePagePayRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use AlipayTradePagePayRequest.ProtoReflect.Descriptor instead.
func (*AlipayTradePagePayRequest) Descriptor() ([]byte, []int) {
return file_alipay_proto_rawDescGZIP(), []int{2}
return file_module_finance_wallet_proto_alipay_proto_rawDescGZIP(), []int{2}
}
func (x *AlipayTradePagePayRequest) GetUserIdentification() string {
@@ -226,7 +226,7 @@ type AlipayTradePagePayReply struct {
func (x *AlipayTradePagePayReply) Reset() {
*x = AlipayTradePagePayReply{}
mi := &file_alipay_proto_msgTypes[3]
mi := &file_module_finance_wallet_proto_alipay_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -238,7 +238,7 @@ func (x *AlipayTradePagePayReply) String() string {
func (*AlipayTradePagePayReply) ProtoMessage() {}
func (x *AlipayTradePagePayReply) ProtoReflect() protoreflect.Message {
mi := &file_alipay_proto_msgTypes[3]
mi := &file_module_finance_wallet_proto_alipay_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -251,7 +251,7 @@ func (x *AlipayTradePagePayReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use AlipayTradePagePayReply.ProtoReflect.Descriptor instead.
func (*AlipayTradePagePayReply) Descriptor() ([]byte, []int) {
return file_alipay_proto_rawDescGZIP(), []int{3}
return file_module_finance_wallet_proto_alipay_proto_rawDescGZIP(), []int{3}
}
func (x *AlipayTradePagePayReply) GetPayUrl() string {
@@ -273,7 +273,7 @@ type AlipayTradeAppPayRequest struct {
func (x *AlipayTradeAppPayRequest) Reset() {
*x = AlipayTradeAppPayRequest{}
mi := &file_alipay_proto_msgTypes[4]
mi := &file_module_finance_wallet_proto_alipay_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -285,7 +285,7 @@ func (x *AlipayTradeAppPayRequest) String() string {
func (*AlipayTradeAppPayRequest) ProtoMessage() {}
func (x *AlipayTradeAppPayRequest) ProtoReflect() protoreflect.Message {
mi := &file_alipay_proto_msgTypes[4]
mi := &file_module_finance_wallet_proto_alipay_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -298,7 +298,7 @@ func (x *AlipayTradeAppPayRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use AlipayTradeAppPayRequest.ProtoReflect.Descriptor instead.
func (*AlipayTradeAppPayRequest) Descriptor() ([]byte, []int) {
return file_alipay_proto_rawDescGZIP(), []int{4}
return file_module_finance_wallet_proto_alipay_proto_rawDescGZIP(), []int{4}
}
func (x *AlipayTradeAppPayRequest) GetUserIdentification() string {
@@ -338,7 +338,7 @@ type AlipayTradeAppPayReply struct {
func (x *AlipayTradeAppPayReply) Reset() {
*x = AlipayTradeAppPayReply{}
mi := &file_alipay_proto_msgTypes[5]
mi := &file_module_finance_wallet_proto_alipay_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -350,7 +350,7 @@ func (x *AlipayTradeAppPayReply) String() string {
func (*AlipayTradeAppPayReply) ProtoMessage() {}
func (x *AlipayTradeAppPayReply) ProtoReflect() protoreflect.Message {
mi := &file_alipay_proto_msgTypes[5]
mi := &file_module_finance_wallet_proto_alipay_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -363,7 +363,7 @@ func (x *AlipayTradeAppPayReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use AlipayTradeAppPayReply.ProtoReflect.Descriptor instead.
func (*AlipayTradeAppPayReply) Descriptor() ([]byte, []int) {
return file_alipay_proto_rawDescGZIP(), []int{5}
return file_module_finance_wallet_proto_alipay_proto_rawDescGZIP(), []int{5}
}
func (x *AlipayTradeAppPayReply) GetPayParam() string {
@@ -385,7 +385,7 @@ type AlipayUniTransferRequest struct {
func (x *AlipayUniTransferRequest) Reset() {
*x = AlipayUniTransferRequest{}
mi := &file_alipay_proto_msgTypes[6]
mi := &file_module_finance_wallet_proto_alipay_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -397,7 +397,7 @@ func (x *AlipayUniTransferRequest) String() string {
func (*AlipayUniTransferRequest) ProtoMessage() {}
func (x *AlipayUniTransferRequest) ProtoReflect() protoreflect.Message {
mi := &file_alipay_proto_msgTypes[6]
mi := &file_module_finance_wallet_proto_alipay_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -410,7 +410,7 @@ func (x *AlipayUniTransferRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use AlipayUniTransferRequest.ProtoReflect.Descriptor instead.
func (*AlipayUniTransferRequest) Descriptor() ([]byte, []int) {
return file_alipay_proto_rawDescGZIP(), []int{6}
return file_module_finance_wallet_proto_alipay_proto_rawDescGZIP(), []int{6}
}
func (x *AlipayUniTransferRequest) GetUserIdentification() string {
@@ -449,7 +449,7 @@ type AlipayUniTransferReply struct {
func (x *AlipayUniTransferReply) Reset() {
*x = AlipayUniTransferReply{}
mi := &file_alipay_proto_msgTypes[7]
mi := &file_module_finance_wallet_proto_alipay_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -461,7 +461,7 @@ func (x *AlipayUniTransferReply) String() string {
func (*AlipayUniTransferReply) ProtoMessage() {}
func (x *AlipayUniTransferReply) ProtoReflect() protoreflect.Message {
mi := &file_alipay_proto_msgTypes[7]
mi := &file_module_finance_wallet_proto_alipay_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -474,14 +474,14 @@ func (x *AlipayUniTransferReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use AlipayUniTransferReply.ProtoReflect.Descriptor instead.
func (*AlipayUniTransferReply) Descriptor() ([]byte, []int) {
return file_alipay_proto_rawDescGZIP(), []int{7}
return file_module_finance_wallet_proto_alipay_proto_rawDescGZIP(), []int{7}
}
var File_alipay_proto protoreflect.FileDescriptor
var File_module_finance_wallet_proto_alipay_proto protoreflect.FileDescriptor
const file_alipay_proto_rawDesc = "" +
const file_module_finance_wallet_proto_alipay_proto_rawDesc = "" +
"\n" +
"\x1bfinance/wallet/alipay.proto\x12\x06wallet\"\xbf\x01\n" +
"(module/finance/wallet/proto/alipay.proto\x12\x06wallet\"\xbf\x01\n" +
"\x18AlipayTradeWapPayRequest\x12/\n" +
"\x13user_identification\x18\x01 \x01(\tR\x12userIdentification\x12\x16\n" +
"\x06amount\x18\x02 \x01(\x03R\x06amount\x12 \n" +
@@ -519,23 +519,22 @@ const file_alipay_proto_rawDesc = "" +
"\x06WapPay\x12 .wallet.AlipayTradeWapPayRequest\x1a\x1e.wallet.AlipayTradeWapPayReply\"\x00\x12O\n" +
"\aPagePay\x12!.wallet.AlipayTradePagePayRequest\x1a\x1f.wallet.AlipayTradePagePayReply\"\x00\x12L\n" +
"\x06AppPay\x12 .wallet.AlipayTradeAppPayRequest\x1a\x1e.wallet.AlipayTradeAppPayReply\"\x00\x12N\n" +
"\bTransfer\x12 .wallet.AlipayUniTransferRequest\x1a\x1e.wallet.AlipayUniTransferReply\"\x00B\n" +
"Z\b.;walletb\x06proto3"
"\bTransfer\x12 .wallet.AlipayUniTransferRequest\x1a\x1e.wallet.AlipayUniTransferReply\"\x00B*Z(bsm/full/module/finance/wallet/pb;walletb\x06proto3"
var (
file_alipay_proto_rawDescOnce sync.Once
file_alipay_proto_rawDescData []byte
file_module_finance_wallet_proto_alipay_proto_rawDescOnce sync.Once
file_module_finance_wallet_proto_alipay_proto_rawDescData []byte
)
func file_alipay_proto_rawDescGZIP() []byte {
file_alipay_proto_rawDescOnce.Do(func() {
file_alipay_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_alipay_proto_rawDesc), len(file_alipay_proto_rawDesc)))
func file_module_finance_wallet_proto_alipay_proto_rawDescGZIP() []byte {
file_module_finance_wallet_proto_alipay_proto_rawDescOnce.Do(func() {
file_module_finance_wallet_proto_alipay_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_finance_wallet_proto_alipay_proto_rawDesc), len(file_module_finance_wallet_proto_alipay_proto_rawDesc)))
})
return file_alipay_proto_rawDescData
return file_module_finance_wallet_proto_alipay_proto_rawDescData
}
var file_alipay_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_alipay_proto_goTypes = []any{
var file_module_finance_wallet_proto_alipay_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_module_finance_wallet_proto_alipay_proto_goTypes = []any{
(*AlipayTradeWapPayRequest)(nil), // 0: wallet.AlipayTradeWapPayRequest
(*AlipayTradeWapPayReply)(nil), // 1: wallet.AlipayTradeWapPayReply
(*AlipayTradePagePayRequest)(nil), // 2: wallet.AlipayTradePagePayRequest
@@ -545,7 +544,7 @@ var file_alipay_proto_goTypes = []any{
(*AlipayUniTransferRequest)(nil), // 6: wallet.AlipayUniTransferRequest
(*AlipayUniTransferReply)(nil), // 7: wallet.AlipayUniTransferReply
}
var file_alipay_proto_depIdxs = []int32{
var file_module_finance_wallet_proto_alipay_proto_depIdxs = []int32{
0, // 0: wallet.Alipay.WapPay:input_type -> wallet.AlipayTradeWapPayRequest
2, // 1: wallet.Alipay.PagePay:input_type -> wallet.AlipayTradePagePayRequest
4, // 2: wallet.Alipay.AppPay:input_type -> wallet.AlipayTradeAppPayRequest
@@ -561,26 +560,26 @@ var file_alipay_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for field type_name
}
func init() { file_alipay_proto_init() }
func file_alipay_proto_init() {
if File_alipay_proto != nil {
func init() { file_module_finance_wallet_proto_alipay_proto_init() }
func file_module_finance_wallet_proto_alipay_proto_init() {
if File_module_finance_wallet_proto_alipay_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_alipay_proto_rawDesc), len(file_alipay_proto_rawDesc)),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_finance_wallet_proto_alipay_proto_rawDesc), len(file_module_finance_wallet_proto_alipay_proto_rawDesc)),
NumEnums: 0,
NumMessages: 8,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_alipay_proto_goTypes,
DependencyIndexes: file_alipay_proto_depIdxs,
MessageInfos: file_alipay_proto_msgTypes,
GoTypes: file_module_finance_wallet_proto_alipay_proto_goTypes,
DependencyIndexes: file_module_finance_wallet_proto_alipay_proto_depIdxs,
MessageInfos: file_module_finance_wallet_proto_alipay_proto_msgTypes,
}.Build()
File_alipay_proto = out.File
file_alipay_proto_goTypes = nil
file_alipay_proto_depIdxs = nil
File_module_finance_wallet_proto_alipay_proto = out.File
file_module_finance_wallet_proto_alipay_proto_goTypes = nil
file_module_finance_wallet_proto_alipay_proto_depIdxs = nil
}

View File

@@ -1,5 +1,5 @@
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
// source: alipay.proto
// source: module/finance/wallet/proto/alipay.proto
/*
Package wallet is a reverse proxy.

View File

@@ -1,8 +1,8 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.5.1
// - protoc (unknown)
// source: alipay.proto
// - protoc-gen-go-grpc v1.6.2
// - protoc v7.35.0
// source: module/finance/wallet/proto/alipay.proto
package wallet
@@ -29,13 +29,13 @@ const (
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type AlipayClient interface {
//支付宝wap支付
// 支付宝wap支付
WapPay(ctx context.Context, in *AlipayTradeWapPayRequest, opts ...grpc.CallOption) (*AlipayTradeWapPayReply, error)
//支付宝电脑网站支付
// 支付宝电脑网站支付
PagePay(ctx context.Context, in *AlipayTradePagePayRequest, opts ...grpc.CallOption) (*AlipayTradePagePayReply, error)
//支付宝APP支付
// 支付宝APP支付
AppPay(ctx context.Context, in *AlipayTradeAppPayRequest, opts ...grpc.CallOption) (*AlipayTradeAppPayReply, error)
//支付宝转账到个人支付宝账户
// 支付宝转账到个人支付宝账户
Transfer(ctx context.Context, in *AlipayUniTransferRequest, opts ...grpc.CallOption) (*AlipayUniTransferReply, error)
}
@@ -88,21 +88,20 @@ func (c *alipayClient) Transfer(ctx context.Context, in *AlipayUniTransferReques
}
// AlipayServer is the server API for Alipay service.
// All implementations must embed UnimplementedAlipayServer
// All implementations should embed UnimplementedAlipayServer
// for forward compatibility.
type AlipayServer interface {
//支付宝wap支付
// 支付宝wap支付
WapPay(context.Context, *AlipayTradeWapPayRequest) (*AlipayTradeWapPayReply, error)
//支付宝电脑网站支付
// 支付宝电脑网站支付
PagePay(context.Context, *AlipayTradePagePayRequest) (*AlipayTradePagePayReply, error)
//支付宝APP支付
// 支付宝APP支付
AppPay(context.Context, *AlipayTradeAppPayRequest) (*AlipayTradeAppPayReply, error)
//支付宝转账到个人支付宝账户
// 支付宝转账到个人支付宝账户
Transfer(context.Context, *AlipayUniTransferRequest) (*AlipayUniTransferReply, error)
mustEmbedUnimplementedAlipayServer()
}
// UnimplementedAlipayServer must be embedded to have
// UnimplementedAlipayServer should be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
@@ -110,19 +109,18 @@ type AlipayServer interface {
type UnimplementedAlipayServer struct{}
func (UnimplementedAlipayServer) WapPay(context.Context, *AlipayTradeWapPayRequest) (*AlipayTradeWapPayReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method WapPay not implemented")
return nil, status.Error(codes.Unimplemented, "method WapPay not implemented")
}
func (UnimplementedAlipayServer) PagePay(context.Context, *AlipayTradePagePayRequest) (*AlipayTradePagePayReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method PagePay not implemented")
return nil, status.Error(codes.Unimplemented, "method PagePay not implemented")
}
func (UnimplementedAlipayServer) AppPay(context.Context, *AlipayTradeAppPayRequest) (*AlipayTradeAppPayReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method AppPay not implemented")
return nil, status.Error(codes.Unimplemented, "method AppPay not implemented")
}
func (UnimplementedAlipayServer) Transfer(context.Context, *AlipayUniTransferRequest) (*AlipayUniTransferReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method Transfer not implemented")
return nil, status.Error(codes.Unimplemented, "method Transfer not implemented")
}
func (UnimplementedAlipayServer) mustEmbedUnimplementedAlipayServer() {}
func (UnimplementedAlipayServer) testEmbeddedByValue() {}
func (UnimplementedAlipayServer) testEmbeddedByValue() {}
// UnsafeAlipayServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to AlipayServer will
@@ -132,7 +130,7 @@ type UnsafeAlipayServer interface {
}
func RegisterAlipayServer(s grpc.ServiceRegistrar, srv AlipayServer) {
// If the following call pancis, it indicates UnimplementedAlipayServer was
// If the following call panics, it indicates UnimplementedAlipayServer was
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
@@ -239,5 +237,5 @@ var Alipay_ServiceDesc = grpc.ServiceDesc{
},
},
Streams: []grpc.StreamDesc{},
Metadata: "alipay.proto",
Metadata: "module/finance/wallet/proto/alipay.proto",
}

View File

@@ -1,408 +0,0 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.8
// protoc (unknown)
// source: blocks.proto
package wallet
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
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 FetchRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
PageNo int64 `protobuf:"varint,1,opt,name=page_no,json=pageNo,proto3" json:"page_no,omitempty"` // 页数
PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // 每页记录数
Params map[string]string `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // 条件参数,key=val,eg key:category_id=?,vlaue=11
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FetchRequest) Reset() {
*x = FetchRequest{}
mi := &file_blocks_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FetchRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FetchRequest) ProtoMessage() {}
func (x *FetchRequest) ProtoReflect() protoreflect.Message {
mi := &file_blocks_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FetchRequest.ProtoReflect.Descriptor instead.
func (*FetchRequest) Descriptor() ([]byte, []int) {
return file_blocks_proto_rawDescGZIP(), []int{0}
}
func (x *FetchRequest) GetPageNo() int64 {
if x != nil {
return x.PageNo
}
return 0
}
func (x *FetchRequest) GetPageSize() int64 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *FetchRequest) GetParams() map[string]string {
if x != nil {
return x.Params
}
return nil
}
type IdentRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 唯一ID
Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // 唯一码
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *IdentRequest) Reset() {
*x = IdentRequest{}
mi := &file_blocks_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *IdentRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IdentRequest) ProtoMessage() {}
func (x *IdentRequest) ProtoReflect() protoreflect.Message {
mi := &file_blocks_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IdentRequest.ProtoReflect.Descriptor instead.
func (*IdentRequest) Descriptor() ([]byte, []int) {
return file_blocks_proto_rawDescGZIP(), []int{1}
}
func (x *IdentRequest) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *IdentRequest) GetIdentity() string {
if x != nil {
return x.Identity
}
return ""
}
type VersionRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Version int64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // 时序版本号
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *VersionRequest) Reset() {
*x = VersionRequest{}
mi := &file_blocks_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *VersionRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VersionRequest) ProtoMessage() {}
func (x *VersionRequest) ProtoReflect() protoreflect.Message {
mi := &file_blocks_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use VersionRequest.ProtoReflect.Descriptor instead.
func (*VersionRequest) Descriptor() ([]byte, []int) {
return file_blocks_proto_rawDescGZIP(), []int{2}
}
func (x *VersionRequest) GetVersion() int64 {
if x != nil {
return x.Version
}
return 0
}
type SearchRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"` //关键词
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SearchRequest) Reset() {
*x = SearchRequest{}
mi := &file_blocks_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SearchRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SearchRequest) ProtoMessage() {}
func (x *SearchRequest) ProtoReflect() protoreflect.Message {
mi := &file_blocks_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
func (*SearchRequest) Descriptor() ([]byte, []int) {
return file_blocks_proto_rawDescGZIP(), []int{3}
}
func (x *SearchRequest) GetKeyword() string {
if x != nil {
return x.Keyword
}
return ""
}
type StatusReply struct {
state protoimpl.MessageState `protogen:"open.v1"`
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 状态码
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 状态说明
Details string `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` // 数据
Timeseq int64 `protobuf:"varint,4,opt,name=timeseq,proto3" json:"timeseq,omitempty"` // 响应时间序列
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *StatusReply) Reset() {
*x = StatusReply{}
mi := &file_blocks_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *StatusReply) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StatusReply) ProtoMessage() {}
func (x *StatusReply) ProtoReflect() protoreflect.Message {
mi := &file_blocks_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use StatusReply.ProtoReflect.Descriptor instead.
func (*StatusReply) Descriptor() ([]byte, []int) {
return file_blocks_proto_rawDescGZIP(), []int{4}
}
func (x *StatusReply) GetCode() int32 {
if x != nil {
return x.Code
}
return 0
}
func (x *StatusReply) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
func (x *StatusReply) GetDetails() string {
if x != nil {
return x.Details
}
return ""
}
func (x *StatusReply) GetTimeseq() int64 {
if x != nil {
return x.Timeseq
}
return 0
}
type Empty struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Empty) Reset() {
*x = Empty{}
mi := &file_blocks_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Empty) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Empty) ProtoMessage() {}
func (x *Empty) ProtoReflect() protoreflect.Message {
mi := &file_blocks_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Empty.ProtoReflect.Descriptor instead.
func (*Empty) Descriptor() ([]byte, []int) {
return file_blocks_proto_rawDescGZIP(), []int{5}
}
var File_blocks_proto protoreflect.FileDescriptor
const file_blocks_proto_rawDesc = "" +
"\n" +
"\x13wallet/blocks.proto\x12\x06wallet\"\xb9\x01\n" +
"\fFetchRequest\x12\x17\n" +
"\apage_no\x18\x01 \x01(\x03R\x06pageNo\x12\x1b\n" +
"\tpage_size\x18\x02 \x01(\x03R\bpageSize\x128\n" +
"\x06params\x18\x03 \x03(\v2 .wallet.FetchRequest.ParamsEntryR\x06params\x1a9\n" +
"\vParamsEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\":\n" +
"\fIdentRequest\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
"\bidentity\x18\x02 \x01(\tR\bidentity\"*\n" +
"\x0eVersionRequest\x12\x18\n" +
"\aversion\x18\x01 \x01(\x03R\aversion\")\n" +
"\rSearchRequest\x12\x18\n" +
"\akeyword\x18\x01 \x01(\tR\akeyword\"o\n" +
"\vStatusReply\x12\x12\n" +
"\x04code\x18\x01 \x01(\x05R\x04code\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\x12\x18\n" +
"\adetails\x18\x03 \x01(\tR\adetails\x12\x18\n" +
"\atimeseq\x18\x04 \x01(\x03R\atimeseq\"\a\n" +
"\x05EmptyB\n" +
"Z\b.;walletb\x06proto3"
var (
file_blocks_proto_rawDescOnce sync.Once
file_blocks_proto_rawDescData []byte
)
func file_blocks_proto_rawDescGZIP() []byte {
file_blocks_proto_rawDescOnce.Do(func() {
file_blocks_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_blocks_proto_rawDesc), len(file_blocks_proto_rawDesc)))
})
return file_blocks_proto_rawDescData
}
var file_blocks_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_blocks_proto_goTypes = []any{
(*FetchRequest)(nil), // 0: wallet.FetchRequest
(*IdentRequest)(nil), // 1: wallet.IdentRequest
(*VersionRequest)(nil), // 2: wallet.VersionRequest
(*SearchRequest)(nil), // 3: wallet.SearchRequest
(*StatusReply)(nil), // 4: wallet.StatusReply
(*Empty)(nil), // 5: wallet.Empty
nil, // 6: wallet.FetchRequest.ParamsEntry
}
var file_blocks_proto_depIdxs = []int32{
6, // 0: wallet.FetchRequest.params:type_name -> wallet.FetchRequest.ParamsEntry
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_blocks_proto_init() }
func file_blocks_proto_init() {
if File_blocks_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_blocks_proto_rawDesc), len(file_blocks_proto_rawDesc)),
NumEnums: 0,
NumMessages: 7,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_blocks_proto_goTypes,
DependencyIndexes: file_blocks_proto_depIdxs,
MessageInfos: file_blocks_proto_msgTypes,
}.Build()
File_blocks_proto = out.File
file_blocks_proto_goTypes = nil
file_blocks_proto_depIdxs = nil
}

View File

@@ -0,0 +1,10 @@
package wallet
import blocks "bsm/full/protobuf"
type Empty = blocks.Empty
type FetchRequest = blocks.FetchRequest
type IdentRequest = blocks.IdentRequest
type VersionRequest = blocks.VersionRequest
type SearchRequest = blocks.SearchRequest
type StatusReply = blocks.StatusReply

View File

@@ -1,12 +1,13 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.8
// protoc (unknown)
// source: payment.proto
// protoc-gen-go v1.36.11
// protoc v7.35.0
// source: module/finance/wallet/proto/payment.proto
package wallet
import (
protobuf "bsm/full/protobuf"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
@@ -30,7 +31,7 @@ type WayRequest struct {
func (x *WayRequest) Reset() {
*x = WayRequest{}
mi := &file_payment_proto_msgTypes[0]
mi := &file_module_finance_wallet_proto_payment_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -42,7 +43,7 @@ func (x *WayRequest) String() string {
func (*WayRequest) ProtoMessage() {}
func (x *WayRequest) ProtoReflect() protoreflect.Message {
mi := &file_payment_proto_msgTypes[0]
mi := &file_module_finance_wallet_proto_payment_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -55,7 +56,7 @@ func (x *WayRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use WayRequest.ProtoReflect.Descriptor instead.
func (*WayRequest) Descriptor() ([]byte, []int) {
return file_payment_proto_rawDescGZIP(), []int{0}
return file_module_finance_wallet_proto_payment_proto_rawDescGZIP(), []int{0}
}
func (x *WayRequest) GetPlatform() string {
@@ -74,7 +75,7 @@ type WayReply struct {
func (x *WayReply) Reset() {
*x = WayReply{}
mi := &file_payment_proto_msgTypes[1]
mi := &file_module_finance_wallet_proto_payment_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -86,7 +87,7 @@ func (x *WayReply) String() string {
func (*WayReply) ProtoMessage() {}
func (x *WayReply) ProtoReflect() protoreflect.Message {
mi := &file_payment_proto_msgTypes[1]
mi := &file_module_finance_wallet_proto_payment_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -99,7 +100,7 @@ func (x *WayReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use WayReply.ProtoReflect.Descriptor instead.
func (*WayReply) Descriptor() ([]byte, []int) {
return file_payment_proto_rawDescGZIP(), []int{1}
return file_module_finance_wallet_proto_payment_proto_rawDescGZIP(), []int{1}
}
func (x *WayReply) GetWay() []*WayItem {
@@ -121,7 +122,7 @@ type WayItem struct {
func (x *WayItem) Reset() {
*x = WayItem{}
mi := &file_payment_proto_msgTypes[2]
mi := &file_module_finance_wallet_proto_payment_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -133,7 +134,7 @@ func (x *WayItem) String() string {
func (*WayItem) ProtoMessage() {}
func (x *WayItem) ProtoReflect() protoreflect.Message {
mi := &file_payment_proto_msgTypes[2]
mi := &file_module_finance_wallet_proto_payment_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -146,7 +147,7 @@ func (x *WayItem) ProtoReflect() protoreflect.Message {
// Deprecated: Use WayItem.ProtoReflect.Descriptor instead.
func (*WayItem) Descriptor() ([]byte, []int) {
return file_payment_proto_rawDescGZIP(), []int{2}
return file_module_finance_wallet_proto_payment_proto_rawDescGZIP(), []int{2}
}
func (x *WayItem) GetIdent() string {
@@ -193,7 +194,7 @@ type PaymentItem struct {
func (x *PaymentItem) Reset() {
*x = PaymentItem{}
mi := &file_payment_proto_msgTypes[3]
mi := &file_module_finance_wallet_proto_payment_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -205,7 +206,7 @@ func (x *PaymentItem) String() string {
func (*PaymentItem) ProtoMessage() {}
func (x *PaymentItem) ProtoReflect() protoreflect.Message {
mi := &file_payment_proto_msgTypes[3]
mi := &file_module_finance_wallet_proto_payment_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -218,7 +219,7 @@ func (x *PaymentItem) ProtoReflect() protoreflect.Message {
// Deprecated: Use PaymentItem.ProtoReflect.Descriptor instead.
func (*PaymentItem) Descriptor() ([]byte, []int) {
return file_payment_proto_rawDescGZIP(), []int{3}
return file_module_finance_wallet_proto_payment_proto_rawDescGZIP(), []int{3}
}
func (x *PaymentItem) GetOrderNo() string {
@@ -291,7 +292,7 @@ type ChargeRequest struct {
func (x *ChargeRequest) Reset() {
*x = ChargeRequest{}
mi := &file_payment_proto_msgTypes[4]
mi := &file_module_finance_wallet_proto_payment_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -303,7 +304,7 @@ func (x *ChargeRequest) String() string {
func (*ChargeRequest) ProtoMessage() {}
func (x *ChargeRequest) ProtoReflect() protoreflect.Message {
mi := &file_payment_proto_msgTypes[4]
mi := &file_module_finance_wallet_proto_payment_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -316,7 +317,7 @@ func (x *ChargeRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ChargeRequest.ProtoReflect.Descriptor instead.
func (*ChargeRequest) Descriptor() ([]byte, []int) {
return file_payment_proto_rawDescGZIP(), []int{4}
return file_module_finance_wallet_proto_payment_proto_rawDescGZIP(), []int{4}
}
func (x *ChargeRequest) GetAmount() int64 {
@@ -376,7 +377,7 @@ type OrderRequest struct {
func (x *OrderRequest) Reset() {
*x = OrderRequest{}
mi := &file_payment_proto_msgTypes[5]
mi := &file_module_finance_wallet_proto_payment_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -388,7 +389,7 @@ func (x *OrderRequest) String() string {
func (*OrderRequest) ProtoMessage() {}
func (x *OrderRequest) ProtoReflect() protoreflect.Message {
mi := &file_payment_proto_msgTypes[5]
mi := &file_module_finance_wallet_proto_payment_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -401,7 +402,7 @@ func (x *OrderRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use OrderRequest.ProtoReflect.Descriptor instead.
func (*OrderRequest) Descriptor() ([]byte, []int) {
return file_payment_proto_rawDescGZIP(), []int{5}
return file_module_finance_wallet_proto_payment_proto_rawDescGZIP(), []int{5}
}
func (x *OrderRequest) GetOrderNo() string {
@@ -465,7 +466,7 @@ type CallbackRequest struct {
func (x *CallbackRequest) Reset() {
*x = CallbackRequest{}
mi := &file_payment_proto_msgTypes[6]
mi := &file_module_finance_wallet_proto_payment_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -477,7 +478,7 @@ func (x *CallbackRequest) String() string {
func (*CallbackRequest) ProtoMessage() {}
func (x *CallbackRequest) ProtoReflect() protoreflect.Message {
mi := &file_payment_proto_msgTypes[6]
mi := &file_module_finance_wallet_proto_payment_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -490,7 +491,7 @@ func (x *CallbackRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use CallbackRequest.ProtoReflect.Descriptor instead.
func (*CallbackRequest) Descriptor() ([]byte, []int) {
return file_payment_proto_rawDescGZIP(), []int{6}
return file_module_finance_wallet_proto_payment_proto_rawDescGZIP(), []int{6}
}
func (x *CallbackRequest) GetId() int64 {
@@ -531,7 +532,7 @@ type PaymentReply struct {
func (x *PaymentReply) Reset() {
*x = PaymentReply{}
mi := &file_payment_proto_msgTypes[7]
mi := &file_module_finance_wallet_proto_payment_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -543,7 +544,7 @@ func (x *PaymentReply) String() string {
func (*PaymentReply) ProtoMessage() {}
func (x *PaymentReply) ProtoReflect() protoreflect.Message {
mi := &file_payment_proto_msgTypes[7]
mi := &file_module_finance_wallet_proto_payment_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -556,7 +557,7 @@ func (x *PaymentReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use PaymentReply.ProtoReflect.Descriptor instead.
func (*PaymentReply) Descriptor() ([]byte, []int) {
return file_payment_proto_rawDescGZIP(), []int{7}
return file_module_finance_wallet_proto_payment_proto_rawDescGZIP(), []int{7}
}
func (x *PaymentReply) GetCode() int64 {
@@ -573,11 +574,11 @@ func (x *PaymentReply) GetResult() map[string]string {
return nil
}
var File_payment_proto protoreflect.FileDescriptor
var File_module_finance_wallet_proto_payment_proto protoreflect.FileDescriptor
const file_payment_proto_rawDesc = "" +
const file_module_finance_wallet_proto_payment_proto_rawDesc = "" +
"\n" +
"\x1cfinance/wallet/payment.proto\x12\x06wallet\x1a\x13wallet/blocks.proto\"(\n" +
")module/finance/wallet/proto/payment.proto\x12\x06wallet\x1a\x15protobuf/blocks.proto\"(\n" +
"\n" +
"WayRequest\x12\x1a\n" +
"\bplatform\x18\x01 \x01(\tR\bplatform\"-\n" +
@@ -627,47 +628,46 @@ const file_payment_proto_rawDesc = "" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x012\xcc\x02\n" +
"\aPayment\x12.\n" +
"\x05Hello\x12\r.wallet.Empty\x1a\x14.wallet.PaymentReply\"\x00\x12-\n" +
"\x05Hello\x12\r.blocks.Empty\x1a\x14.wallet.PaymentReply\"\x00\x12-\n" +
"\x03Way\x12\x12.wallet.WayRequest\x1a\x10.wallet.WayReply\"\x00\x122\n" +
"\x03Get\x12\x14.wallet.IdentRequest\x1a\x13.wallet.PaymentItem\"\x00\x127\n" +
"\x03Get\x12\x14.blocks.IdentRequest\x1a\x13.wallet.PaymentItem\"\x00\x127\n" +
"\aByOrder\x12\x14.wallet.OrderRequest\x1a\x14.wallet.PaymentReply\"\x00\x129\n" +
"\bByCharge\x12\x15.wallet.ChargeRequest\x1a\x14.wallet.PaymentReply\"\x00\x12:\n" +
"\bCallback\x12\x17.wallet.CallbackRequest\x1a\x13.wallet.StatusReply\"\x00B\n" +
"Z\b.;walletb\x06proto3"
"\bCallback\x12\x17.wallet.CallbackRequest\x1a\x13.blocks.StatusReply\"\x00B*Z(bsm/full/module/finance/wallet/pb;walletb\x06proto3"
var (
file_payment_proto_rawDescOnce sync.Once
file_payment_proto_rawDescData []byte
file_module_finance_wallet_proto_payment_proto_rawDescOnce sync.Once
file_module_finance_wallet_proto_payment_proto_rawDescData []byte
)
func file_payment_proto_rawDescGZIP() []byte {
file_payment_proto_rawDescOnce.Do(func() {
file_payment_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_payment_proto_rawDesc), len(file_payment_proto_rawDesc)))
func file_module_finance_wallet_proto_payment_proto_rawDescGZIP() []byte {
file_module_finance_wallet_proto_payment_proto_rawDescOnce.Do(func() {
file_module_finance_wallet_proto_payment_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_finance_wallet_proto_payment_proto_rawDesc), len(file_module_finance_wallet_proto_payment_proto_rawDesc)))
})
return file_payment_proto_rawDescData
return file_module_finance_wallet_proto_payment_proto_rawDescData
}
var file_payment_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_payment_proto_goTypes = []any{
(*WayRequest)(nil), // 0: wallet.WayRequest
(*WayReply)(nil), // 1: wallet.WayReply
(*WayItem)(nil), // 2: wallet.WayItem
(*PaymentItem)(nil), // 3: wallet.PaymentItem
(*ChargeRequest)(nil), // 4: wallet.ChargeRequest
(*OrderRequest)(nil), // 5: wallet.OrderRequest
(*CallbackRequest)(nil), // 6: wallet.CallbackRequest
(*PaymentReply)(nil), // 7: wallet.PaymentReply
nil, // 8: wallet.PaymentReply.ResultEntry
(*Empty)(nil), // 9: wallet.Empty
(*IdentRequest)(nil), // 10: wallet.IdentRequest
(*StatusReply)(nil), // 11: wallet.StatusReply
var file_module_finance_wallet_proto_payment_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_module_finance_wallet_proto_payment_proto_goTypes = []any{
(*WayRequest)(nil), // 0: wallet.WayRequest
(*WayReply)(nil), // 1: wallet.WayReply
(*WayItem)(nil), // 2: wallet.WayItem
(*PaymentItem)(nil), // 3: wallet.PaymentItem
(*ChargeRequest)(nil), // 4: wallet.ChargeRequest
(*OrderRequest)(nil), // 5: wallet.OrderRequest
(*CallbackRequest)(nil), // 6: wallet.CallbackRequest
(*PaymentReply)(nil), // 7: wallet.PaymentReply
nil, // 8: wallet.PaymentReply.ResultEntry
(*protobuf.Empty)(nil), // 9: blocks.Empty
(*protobuf.IdentRequest)(nil), // 10: blocks.IdentRequest
(*protobuf.StatusReply)(nil), // 11: blocks.StatusReply
}
var file_payment_proto_depIdxs = []int32{
var file_module_finance_wallet_proto_payment_proto_depIdxs = []int32{
2, // 0: wallet.WayReply.way:type_name -> wallet.WayItem
8, // 1: wallet.PaymentReply.result:type_name -> wallet.PaymentReply.ResultEntry
9, // 2: wallet.Payment.Hello:input_type -> wallet.Empty
9, // 2: wallet.Payment.Hello:input_type -> blocks.Empty
0, // 3: wallet.Payment.Way:input_type -> wallet.WayRequest
10, // 4: wallet.Payment.Get:input_type -> wallet.IdentRequest
10, // 4: wallet.Payment.Get:input_type -> blocks.IdentRequest
5, // 5: wallet.Payment.ByOrder:input_type -> wallet.OrderRequest
4, // 6: wallet.Payment.ByCharge:input_type -> wallet.ChargeRequest
6, // 7: wallet.Payment.Callback:input_type -> wallet.CallbackRequest
@@ -676,7 +676,7 @@ var file_payment_proto_depIdxs = []int32{
3, // 10: wallet.Payment.Get:output_type -> wallet.PaymentItem
7, // 11: wallet.Payment.ByOrder:output_type -> wallet.PaymentReply
7, // 12: wallet.Payment.ByCharge:output_type -> wallet.PaymentReply
11, // 13: wallet.Payment.Callback:output_type -> wallet.StatusReply
11, // 13: wallet.Payment.Callback:output_type -> blocks.StatusReply
8, // [8:14] is the sub-list for method output_type
2, // [2:8] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
@@ -684,27 +684,26 @@ var file_payment_proto_depIdxs = []int32{
0, // [0:2] is the sub-list for field type_name
}
func init() { file_payment_proto_init() }
func file_payment_proto_init() {
if File_payment_proto != nil {
func init() { file_module_finance_wallet_proto_payment_proto_init() }
func file_module_finance_wallet_proto_payment_proto_init() {
if File_module_finance_wallet_proto_payment_proto != nil {
return
}
file_blocks_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_payment_proto_rawDesc), len(file_payment_proto_rawDesc)),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_finance_wallet_proto_payment_proto_rawDesc), len(file_module_finance_wallet_proto_payment_proto_rawDesc)),
NumEnums: 0,
NumMessages: 9,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_payment_proto_goTypes,
DependencyIndexes: file_payment_proto_depIdxs,
MessageInfos: file_payment_proto_msgTypes,
GoTypes: file_module_finance_wallet_proto_payment_proto_goTypes,
DependencyIndexes: file_module_finance_wallet_proto_payment_proto_depIdxs,
MessageInfos: file_module_finance_wallet_proto_payment_proto_msgTypes,
}.Build()
File_payment_proto = out.File
file_payment_proto_goTypes = nil
file_payment_proto_depIdxs = nil
File_module_finance_wallet_proto_payment_proto = out.File
file_module_finance_wallet_proto_payment_proto_goTypes = nil
file_module_finance_wallet_proto_payment_proto_depIdxs = nil
}

View File

@@ -1,5 +1,5 @@
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
// source: payment.proto
// source: module/finance/wallet/proto/payment.proto
/*
Package wallet is a reverse proxy.
@@ -9,6 +9,7 @@ It translates gRPC into RESTful JSON APIs.
package wallet
import (
"bsm/full/protobuf"
"context"
"errors"
"io"
@@ -37,7 +38,7 @@ var (
func request_Payment_Hello_0(ctx context.Context, marshaler runtime.Marshaler, client PaymentClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var (
protoReq Empty
protoReq blocks.Empty
metadata runtime.ServerMetadata
)
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
@@ -52,7 +53,7 @@ func request_Payment_Hello_0(ctx context.Context, marshaler runtime.Marshaler, c
func local_request_Payment_Hello_0(ctx context.Context, marshaler runtime.Marshaler, server PaymentServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var (
protoReq Empty
protoReq blocks.Empty
metadata runtime.ServerMetadata
)
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
@@ -91,7 +92,7 @@ func local_request_Payment_Way_0(ctx context.Context, marshaler runtime.Marshale
func request_Payment_Get_0(ctx context.Context, marshaler runtime.Marshaler, client PaymentClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var (
protoReq IdentRequest
protoReq blocks.IdentRequest
metadata runtime.ServerMetadata
)
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
@@ -106,7 +107,7 @@ func request_Payment_Get_0(ctx context.Context, marshaler runtime.Marshaler, cli
func local_request_Payment_Get_0(ctx context.Context, marshaler runtime.Marshaler, server PaymentServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var (
protoReq IdentRequest
protoReq blocks.IdentRequest
metadata runtime.ServerMetadata
)
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {

View File

@@ -1,12 +1,13 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.5.1
// - protoc (unknown)
// source: payment.proto
// - protoc-gen-go-grpc v1.6.2
// - protoc v7.35.0
// source: module/finance/wallet/proto/payment.proto
package wallet
import (
protobuf "bsm/full/protobuf"
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
@@ -31,17 +32,17 @@ const (
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type PaymentClient interface {
Hello(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PaymentReply, error)
//获取平台支持的支付网关
Hello(ctx context.Context, in *protobuf.Empty, opts ...grpc.CallOption) (*PaymentReply, error)
// 获取平台支持的支付网关
Way(ctx context.Context, in *WayRequest, opts ...grpc.CallOption) (*WayReply, error)
//获取支付的详情
Get(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*PaymentItem, error)
//支付-电商订单
// 获取支付的详情
Get(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*PaymentItem, error)
// 支付-电商订单
ByOrder(ctx context.Context, in *OrderRequest, opts ...grpc.CallOption) (*PaymentReply, error)
//支付-充值
// 支付-充值
ByCharge(ctx context.Context, in *ChargeRequest, opts ...grpc.CallOption) (*PaymentReply, error)
//回调更新支付的结果和状态
Callback(ctx context.Context, in *CallbackRequest, opts ...grpc.CallOption) (*StatusReply, error)
// 回调更新支付的结果和状态
Callback(ctx context.Context, in *CallbackRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
}
type paymentClient struct {
@@ -52,7 +53,7 @@ func NewPaymentClient(cc grpc.ClientConnInterface) PaymentClient {
return &paymentClient{cc}
}
func (c *paymentClient) Hello(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PaymentReply, error) {
func (c *paymentClient) Hello(ctx context.Context, in *protobuf.Empty, opts ...grpc.CallOption) (*PaymentReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(PaymentReply)
err := c.cc.Invoke(ctx, Payment_Hello_FullMethodName, in, out, cOpts...)
@@ -72,7 +73,7 @@ func (c *paymentClient) Way(ctx context.Context, in *WayRequest, opts ...grpc.Ca
return out, nil
}
func (c *paymentClient) Get(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*PaymentItem, error) {
func (c *paymentClient) Get(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*PaymentItem, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(PaymentItem)
err := c.cc.Invoke(ctx, Payment_Get_FullMethodName, in, out, cOpts...)
@@ -102,9 +103,9 @@ func (c *paymentClient) ByCharge(ctx context.Context, in *ChargeRequest, opts ..
return out, nil
}
func (c *paymentClient) Callback(ctx context.Context, in *CallbackRequest, opts ...grpc.CallOption) (*StatusReply, error) {
func (c *paymentClient) Callback(ctx context.Context, in *CallbackRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(StatusReply)
out := new(protobuf.StatusReply)
err := c.cc.Invoke(ctx, Payment_Callback_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -113,50 +114,48 @@ func (c *paymentClient) Callback(ctx context.Context, in *CallbackRequest, opts
}
// PaymentServer is the server API for Payment service.
// All implementations must embed UnimplementedPaymentServer
// All implementations should embed UnimplementedPaymentServer
// for forward compatibility.
type PaymentServer interface {
Hello(context.Context, *Empty) (*PaymentReply, error)
//获取平台支持的支付网关
Hello(context.Context, *protobuf.Empty) (*PaymentReply, error)
// 获取平台支持的支付网关
Way(context.Context, *WayRequest) (*WayReply, error)
//获取支付的详情
Get(context.Context, *IdentRequest) (*PaymentItem, error)
//支付-电商订单
// 获取支付的详情
Get(context.Context, *protobuf.IdentRequest) (*PaymentItem, error)
// 支付-电商订单
ByOrder(context.Context, *OrderRequest) (*PaymentReply, error)
//支付-充值
// 支付-充值
ByCharge(context.Context, *ChargeRequest) (*PaymentReply, error)
//回调更新支付的结果和状态
Callback(context.Context, *CallbackRequest) (*StatusReply, error)
mustEmbedUnimplementedPaymentServer()
// 回调更新支付的结果和状态
Callback(context.Context, *CallbackRequest) (*protobuf.StatusReply, error)
}
// UnimplementedPaymentServer must be embedded to have
// UnimplementedPaymentServer should be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedPaymentServer struct{}
func (UnimplementedPaymentServer) Hello(context.Context, *Empty) (*PaymentReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method Hello not implemented")
func (UnimplementedPaymentServer) Hello(context.Context, *protobuf.Empty) (*PaymentReply, error) {
return nil, status.Error(codes.Unimplemented, "method Hello not implemented")
}
func (UnimplementedPaymentServer) Way(context.Context, *WayRequest) (*WayReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method Way not implemented")
return nil, status.Error(codes.Unimplemented, "method Way not implemented")
}
func (UnimplementedPaymentServer) Get(context.Context, *IdentRequest) (*PaymentItem, error) {
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
func (UnimplementedPaymentServer) Get(context.Context, *protobuf.IdentRequest) (*PaymentItem, error) {
return nil, status.Error(codes.Unimplemented, "method Get not implemented")
}
func (UnimplementedPaymentServer) ByOrder(context.Context, *OrderRequest) (*PaymentReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method ByOrder not implemented")
return nil, status.Error(codes.Unimplemented, "method ByOrder not implemented")
}
func (UnimplementedPaymentServer) ByCharge(context.Context, *ChargeRequest) (*PaymentReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method ByCharge not implemented")
return nil, status.Error(codes.Unimplemented, "method ByCharge not implemented")
}
func (UnimplementedPaymentServer) Callback(context.Context, *CallbackRequest) (*StatusReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method Callback not implemented")
func (UnimplementedPaymentServer) Callback(context.Context, *CallbackRequest) (*protobuf.StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method Callback not implemented")
}
func (UnimplementedPaymentServer) mustEmbedUnimplementedPaymentServer() {}
func (UnimplementedPaymentServer) testEmbeddedByValue() {}
func (UnimplementedPaymentServer) testEmbeddedByValue() {}
// UnsafePaymentServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to PaymentServer will
@@ -166,7 +165,7 @@ type UnsafePaymentServer interface {
}
func RegisterPaymentServer(s grpc.ServiceRegistrar, srv PaymentServer) {
// If the following call pancis, it indicates UnimplementedPaymentServer was
// If the following call panics, it indicates UnimplementedPaymentServer was
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
@@ -177,7 +176,7 @@ func RegisterPaymentServer(s grpc.ServiceRegistrar, srv PaymentServer) {
}
func _Payment_Hello_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Empty)
in := new(protobuf.Empty)
if err := dec(in); err != nil {
return nil, err
}
@@ -189,7 +188,7 @@ func _Payment_Hello_Handler(srv interface{}, ctx context.Context, dec func(inter
FullMethod: Payment_Hello_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PaymentServer).Hello(ctx, req.(*Empty))
return srv.(PaymentServer).Hello(ctx, req.(*protobuf.Empty))
}
return interceptor(ctx, in, info, handler)
}
@@ -213,7 +212,7 @@ func _Payment_Way_Handler(srv interface{}, ctx context.Context, dec func(interfa
}
func _Payment_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(IdentRequest)
in := new(protobuf.IdentRequest)
if err := dec(in); err != nil {
return nil, err
}
@@ -225,7 +224,7 @@ func _Payment_Get_Handler(srv interface{}, ctx context.Context, dec func(interfa
FullMethod: Payment_Get_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PaymentServer).Get(ctx, req.(*IdentRequest))
return srv.(PaymentServer).Get(ctx, req.(*protobuf.IdentRequest))
}
return interceptor(ctx, in, info, handler)
}
@@ -317,5 +316,5 @@ var Payment_ServiceDesc = grpc.ServiceDesc{
},
},
Streams: []grpc.StreamDesc{},
Metadata: "payment.proto",
Metadata: "module/finance/wallet/proto/payment.proto",
}

View File

@@ -1,12 +1,13 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.8
// protoc (unknown)
// source: wallet.proto
// protoc-gen-go v1.36.11
// protoc v7.35.0
// source: module/finance/wallet/proto/wallet.proto
package wallet
import (
protobuf "bsm/full/protobuf"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
@@ -35,7 +36,7 @@ type GetWalletRequest struct {
func (x *GetWalletRequest) Reset() {
*x = GetWalletRequest{}
mi := &file_wallet_proto_msgTypes[0]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -47,7 +48,7 @@ func (x *GetWalletRequest) String() string {
func (*GetWalletRequest) ProtoMessage() {}
func (x *GetWalletRequest) ProtoReflect() protoreflect.Message {
mi := &file_wallet_proto_msgTypes[0]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -60,7 +61,7 @@ func (x *GetWalletRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetWalletRequest.ProtoReflect.Descriptor instead.
func (*GetWalletRequest) Descriptor() ([]byte, []int) {
return file_wallet_proto_rawDescGZIP(), []int{0}
return file_module_finance_wallet_proto_wallet_proto_rawDescGZIP(), []int{0}
}
func (x *GetWalletRequest) GetIsTotalTodayIn() bool {
@@ -124,7 +125,7 @@ type GetWalletReply struct {
func (x *GetWalletReply) Reset() {
*x = GetWalletReply{}
mi := &file_wallet_proto_msgTypes[1]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -136,7 +137,7 @@ func (x *GetWalletReply) String() string {
func (*GetWalletReply) ProtoMessage() {}
func (x *GetWalletReply) ProtoReflect() protoreflect.Message {
mi := &file_wallet_proto_msgTypes[1]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -149,7 +150,7 @@ func (x *GetWalletReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetWalletReply.ProtoReflect.Descriptor instead.
func (*GetWalletReply) Descriptor() ([]byte, []int) {
return file_wallet_proto_rawDescGZIP(), []int{1}
return file_module_finance_wallet_proto_wallet_proto_rawDescGZIP(), []int{1}
}
func (x *GetWalletReply) GetPassportIdentity() string {
@@ -243,7 +244,7 @@ type TransactionsRequest struct {
func (x *TransactionsRequest) Reset() {
*x = TransactionsRequest{}
mi := &file_wallet_proto_msgTypes[2]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -255,7 +256,7 @@ func (x *TransactionsRequest) String() string {
func (*TransactionsRequest) ProtoMessage() {}
func (x *TransactionsRequest) ProtoReflect() protoreflect.Message {
mi := &file_wallet_proto_msgTypes[2]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -268,7 +269,7 @@ func (x *TransactionsRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use TransactionsRequest.ProtoReflect.Descriptor instead.
func (*TransactionsRequest) Descriptor() ([]byte, []int) {
return file_wallet_proto_rawDescGZIP(), []int{2}
return file_module_finance_wallet_proto_wallet_proto_rawDescGZIP(), []int{2}
}
func (x *TransactionsRequest) GetTransType() int64 {
@@ -323,7 +324,7 @@ type TransactionsReply struct {
func (x *TransactionsReply) Reset() {
*x = TransactionsReply{}
mi := &file_wallet_proto_msgTypes[3]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -335,7 +336,7 @@ func (x *TransactionsReply) String() string {
func (*TransactionsReply) ProtoMessage() {}
func (x *TransactionsReply) ProtoReflect() protoreflect.Message {
mi := &file_wallet_proto_msgTypes[3]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -348,7 +349,7 @@ func (x *TransactionsReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use TransactionsReply.ProtoReflect.Descriptor instead.
func (*TransactionsReply) Descriptor() ([]byte, []int) {
return file_wallet_proto_rawDescGZIP(), []int{3}
return file_module_finance_wallet_proto_wallet_proto_rawDescGZIP(), []int{3}
}
func (x *TransactionsReply) GetTotal() int64 {
@@ -383,7 +384,7 @@ type Transaction struct {
func (x *Transaction) Reset() {
*x = Transaction{}
mi := &file_wallet_proto_msgTypes[4]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -395,7 +396,7 @@ func (x *Transaction) String() string {
func (*Transaction) ProtoMessage() {}
func (x *Transaction) ProtoReflect() protoreflect.Message {
mi := &file_wallet_proto_msgTypes[4]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -408,7 +409,7 @@ func (x *Transaction) ProtoReflect() protoreflect.Message {
// Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) Descriptor() ([]byte, []int) {
return file_wallet_proto_rawDescGZIP(), []int{4}
return file_module_finance_wallet_proto_wallet_proto_rawDescGZIP(), []int{4}
}
func (x *Transaction) GetTransType() int32 {
@@ -491,7 +492,7 @@ type SetPayPasswordRequest struct {
func (x *SetPayPasswordRequest) Reset() {
*x = SetPayPasswordRequest{}
mi := &file_wallet_proto_msgTypes[5]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -503,7 +504,7 @@ func (x *SetPayPasswordRequest) String() string {
func (*SetPayPasswordRequest) ProtoMessage() {}
func (x *SetPayPasswordRequest) ProtoReflect() protoreflect.Message {
mi := &file_wallet_proto_msgTypes[5]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -516,7 +517,7 @@ func (x *SetPayPasswordRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use SetPayPasswordRequest.ProtoReflect.Descriptor instead.
func (*SetPayPasswordRequest) Descriptor() ([]byte, []int) {
return file_wallet_proto_rawDescGZIP(), []int{5}
return file_module_finance_wallet_proto_wallet_proto_rawDescGZIP(), []int{5}
}
func (x *SetPayPasswordRequest) GetPassportIdentity() string {
@@ -543,7 +544,7 @@ type BindPaymentIDRequest struct {
func (x *BindPaymentIDRequest) Reset() {
*x = BindPaymentIDRequest{}
mi := &file_wallet_proto_msgTypes[6]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -555,7 +556,7 @@ func (x *BindPaymentIDRequest) String() string {
func (*BindPaymentIDRequest) ProtoMessage() {}
func (x *BindPaymentIDRequest) ProtoReflect() protoreflect.Message {
mi := &file_wallet_proto_msgTypes[6]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -568,7 +569,7 @@ func (x *BindPaymentIDRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use BindPaymentIDRequest.ProtoReflect.Descriptor instead.
func (*BindPaymentIDRequest) Descriptor() ([]byte, []int) {
return file_wallet_proto_rawDescGZIP(), []int{6}
return file_module_finance_wallet_proto_wallet_proto_rawDescGZIP(), []int{6}
}
func (x *BindPaymentIDRequest) GetPayType() int32 {
@@ -597,7 +598,7 @@ type RefundRequest struct {
func (x *RefundRequest) Reset() {
*x = RefundRequest{}
mi := &file_wallet_proto_msgTypes[7]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -609,7 +610,7 @@ func (x *RefundRequest) String() string {
func (*RefundRequest) ProtoMessage() {}
func (x *RefundRequest) ProtoReflect() protoreflect.Message {
mi := &file_wallet_proto_msgTypes[7]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -622,7 +623,7 @@ func (x *RefundRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use RefundRequest.ProtoReflect.Descriptor instead.
func (*RefundRequest) Descriptor() ([]byte, []int) {
return file_wallet_proto_rawDescGZIP(), []int{7}
return file_module_finance_wallet_proto_wallet_proto_rawDescGZIP(), []int{7}
}
func (x *RefundRequest) GetUserIdentification() string {
@@ -663,7 +664,7 @@ type RefundReply struct {
func (x *RefundReply) Reset() {
*x = RefundReply{}
mi := &file_wallet_proto_msgTypes[8]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -675,7 +676,7 @@ func (x *RefundReply) String() string {
func (*RefundReply) ProtoMessage() {}
func (x *RefundReply) ProtoReflect() protoreflect.Message {
mi := &file_wallet_proto_msgTypes[8]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -688,7 +689,7 @@ func (x *RefundReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use RefundReply.ProtoReflect.Descriptor instead.
func (*RefundReply) Descriptor() ([]byte, []int) {
return file_wallet_proto_rawDescGZIP(), []int{8}
return file_module_finance_wallet_proto_wallet_proto_rawDescGZIP(), []int{8}
}
func (x *RefundReply) GetBalance() int64 {
@@ -718,7 +719,7 @@ type AddBankCardRequest struct {
func (x *AddBankCardRequest) Reset() {
*x = AddBankCardRequest{}
mi := &file_wallet_proto_msgTypes[9]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -730,7 +731,7 @@ func (x *AddBankCardRequest) String() string {
func (*AddBankCardRequest) ProtoMessage() {}
func (x *AddBankCardRequest) ProtoReflect() protoreflect.Message {
mi := &file_wallet_proto_msgTypes[9]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -743,7 +744,7 @@ func (x *AddBankCardRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use AddBankCardRequest.ProtoReflect.Descriptor instead.
func (*AddBankCardRequest) Descriptor() ([]byte, []int) {
return file_wallet_proto_rawDescGZIP(), []int{9}
return file_module_finance_wallet_proto_wallet_proto_rawDescGZIP(), []int{9}
}
func (x *AddBankCardRequest) GetWalletIdentity() string {
@@ -789,7 +790,7 @@ type FinanceEmpty struct {
func (x *FinanceEmpty) Reset() {
*x = FinanceEmpty{}
mi := &file_wallet_proto_msgTypes[10]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -801,7 +802,7 @@ func (x *FinanceEmpty) String() string {
func (*FinanceEmpty) ProtoMessage() {}
func (x *FinanceEmpty) ProtoReflect() protoreflect.Message {
mi := &file_wallet_proto_msgTypes[10]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -814,7 +815,7 @@ func (x *FinanceEmpty) ProtoReflect() protoreflect.Message {
// Deprecated: Use FinanceEmpty.ProtoReflect.Descriptor instead.
func (*FinanceEmpty) Descriptor() ([]byte, []int) {
return file_wallet_proto_rawDescGZIP(), []int{10}
return file_module_finance_wallet_proto_wallet_proto_rawDescGZIP(), []int{10}
}
type RmBankCardRequest struct {
@@ -826,7 +827,7 @@ type RmBankCardRequest struct {
func (x *RmBankCardRequest) Reset() {
*x = RmBankCardRequest{}
mi := &file_wallet_proto_msgTypes[11]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -838,7 +839,7 @@ func (x *RmBankCardRequest) String() string {
func (*RmBankCardRequest) ProtoMessage() {}
func (x *RmBankCardRequest) ProtoReflect() protoreflect.Message {
mi := &file_wallet_proto_msgTypes[11]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -851,7 +852,7 @@ func (x *RmBankCardRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use RmBankCardRequest.ProtoReflect.Descriptor instead.
func (*RmBankCardRequest) Descriptor() ([]byte, []int) {
return file_wallet_proto_rawDescGZIP(), []int{11}
return file_module_finance_wallet_proto_wallet_proto_rawDescGZIP(), []int{11}
}
func (x *RmBankCardRequest) GetIdentity() string {
@@ -870,7 +871,7 @@ type GetBankCardReply struct {
func (x *GetBankCardReply) Reset() {
*x = GetBankCardReply{}
mi := &file_wallet_proto_msgTypes[12]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -882,7 +883,7 @@ func (x *GetBankCardReply) String() string {
func (*GetBankCardReply) ProtoMessage() {}
func (x *GetBankCardReply) ProtoReflect() protoreflect.Message {
mi := &file_wallet_proto_msgTypes[12]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -895,7 +896,7 @@ func (x *GetBankCardReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetBankCardReply.ProtoReflect.Descriptor instead.
func (*GetBankCardReply) Descriptor() ([]byte, []int) {
return file_wallet_proto_rawDescGZIP(), []int{12}
return file_module_finance_wallet_proto_wallet_proto_rawDescGZIP(), []int{12}
}
func (x *GetBankCardReply) GetData() []*BankCardInfo {
@@ -923,7 +924,7 @@ type BankCardInfo struct {
func (x *BankCardInfo) Reset() {
*x = BankCardInfo{}
mi := &file_wallet_proto_msgTypes[13]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -935,7 +936,7 @@ func (x *BankCardInfo) String() string {
func (*BankCardInfo) ProtoMessage() {}
func (x *BankCardInfo) ProtoReflect() protoreflect.Message {
mi := &file_wallet_proto_msgTypes[13]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[13]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -948,7 +949,7 @@ func (x *BankCardInfo) ProtoReflect() protoreflect.Message {
// Deprecated: Use BankCardInfo.ProtoReflect.Descriptor instead.
func (*BankCardInfo) Descriptor() ([]byte, []int) {
return file_wallet_proto_rawDescGZIP(), []int{13}
return file_module_finance_wallet_proto_wallet_proto_rawDescGZIP(), []int{13}
}
func (x *BankCardInfo) GetId() int64 {
@@ -1032,7 +1033,7 @@ type ApplyCashRequest struct {
func (x *ApplyCashRequest) Reset() {
*x = ApplyCashRequest{}
mi := &file_wallet_proto_msgTypes[14]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1044,7 +1045,7 @@ func (x *ApplyCashRequest) String() string {
func (*ApplyCashRequest) ProtoMessage() {}
func (x *ApplyCashRequest) ProtoReflect() protoreflect.Message {
mi := &file_wallet_proto_msgTypes[14]
mi := &file_module_finance_wallet_proto_wallet_proto_msgTypes[14]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1057,7 +1058,7 @@ func (x *ApplyCashRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ApplyCashRequest.ProtoReflect.Descriptor instead.
func (*ApplyCashRequest) Descriptor() ([]byte, []int) {
return file_wallet_proto_rawDescGZIP(), []int{14}
return file_module_finance_wallet_proto_wallet_proto_rawDescGZIP(), []int{14}
}
func (x *ApplyCashRequest) GetChannel() int32 {
@@ -1081,11 +1082,11 @@ func (x *ApplyCashRequest) GetRemark() string {
return ""
}
var File_wallet_proto protoreflect.FileDescriptor
var File_module_finance_wallet_proto_wallet_proto protoreflect.FileDescriptor
const file_wallet_proto_rawDesc = "" +
const file_module_finance_wallet_proto_wallet_proto_rawDesc = "" +
"\n" +
"\x1bfinance/wallet/wallet.proto\x12\x06wallet\x1a\x13wallet/blocks.proto\"\x92\x02\n" +
"(module/finance/wallet/proto/wallet.proto\x12\x06wallet\x1a\x15protobuf/blocks.proto\"\x92\x02\n" +
"\x10GetWalletRequest\x12)\n" +
"\x11is_total_today_in\x18\x01 \x01(\bR\x0eisTotalTodayIn\x12+\n" +
"\x12is_total_today_out\x18\x02 \x01(\bR\x0fisTotalTodayOut\x12)\n" +
@@ -1186,30 +1187,29 @@ const file_wallet_proto_rawDesc = "" +
"\x06remark\x18\x03 \x01(\tR\x06remark2\xa1\x04\n" +
"\x05Basic\x12?\n" +
"\tGetWallet\x12\x18.wallet.GetWalletRequest\x1a\x16.wallet.GetWalletReply\"\x00\x12F\n" +
"\x0eSetPayPassword\x12\x1d.wallet.SetPayPasswordRequest\x1a\x13.wallet.StatusReply\"\x00\x12D\n" +
"\rBindPaymentId\x12\x1c.wallet.BindPaymentIDRequest\x1a\x13.wallet.StatusReply\"\x00\x12H\n" +
"\x0eSetPayPassword\x12\x1d.wallet.SetPayPasswordRequest\x1a\x13.blocks.StatusReply\"\x00\x12D\n" +
"\rBindPaymentId\x12\x1c.wallet.BindPaymentIDRequest\x1a\x13.blocks.StatusReply\"\x00\x12H\n" +
"\fTransactions\x12\x1b.wallet.TransactionsRequest\x1a\x19.wallet.TransactionsReply\"\x00\x12@\n" +
"\vAddBankCard\x12\x1a.wallet.AddBankCardRequest\x1a\x13.wallet.StatusReply\"\x00\x12?\n" +
"\vAddBankCard\x12\x1a.wallet.AddBankCardRequest\x1a\x13.blocks.StatusReply\"\x00\x12?\n" +
"\vGetBankCard\x12\x14.wallet.FinanceEmpty\x1a\x18.wallet.GetBankCardReply\"\x00\x12>\n" +
"\n" +
"RmBankCard\x12\x19.wallet.RmBankCardRequest\x1a\x13.wallet.StatusReply\"\x00\x12<\n" +
"\tApplyCash\x12\x18.wallet.ApplyCashRequest\x1a\x13.wallet.StatusReply\"\x00B\n" +
"Z\b.;walletb\x06proto3"
"RmBankCard\x12\x19.wallet.RmBankCardRequest\x1a\x13.blocks.StatusReply\"\x00\x12<\n" +
"\tApplyCash\x12\x18.wallet.ApplyCashRequest\x1a\x13.blocks.StatusReply\"\x00B*Z(bsm/full/module/finance/wallet/pb;walletb\x06proto3"
var (
file_wallet_proto_rawDescOnce sync.Once
file_wallet_proto_rawDescData []byte
file_module_finance_wallet_proto_wallet_proto_rawDescOnce sync.Once
file_module_finance_wallet_proto_wallet_proto_rawDescData []byte
)
func file_wallet_proto_rawDescGZIP() []byte {
file_wallet_proto_rawDescOnce.Do(func() {
file_wallet_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_wallet_proto_rawDesc), len(file_wallet_proto_rawDesc)))
func file_module_finance_wallet_proto_wallet_proto_rawDescGZIP() []byte {
file_module_finance_wallet_proto_wallet_proto_rawDescOnce.Do(func() {
file_module_finance_wallet_proto_wallet_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_finance_wallet_proto_wallet_proto_rawDesc), len(file_module_finance_wallet_proto_wallet_proto_rawDesc)))
})
return file_wallet_proto_rawDescData
return file_module_finance_wallet_proto_wallet_proto_rawDescData
}
var file_wallet_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
var file_wallet_proto_goTypes = []any{
var file_module_finance_wallet_proto_wallet_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
var file_module_finance_wallet_proto_wallet_proto_goTypes = []any{
(*GetWalletRequest)(nil), // 0: wallet.GetWalletRequest
(*GetWalletReply)(nil), // 1: wallet.GetWalletReply
(*TransactionsRequest)(nil), // 2: wallet.TransactionsRequest
@@ -1226,9 +1226,9 @@ var file_wallet_proto_goTypes = []any{
(*BankCardInfo)(nil), // 13: wallet.BankCardInfo
(*ApplyCashRequest)(nil), // 14: wallet.ApplyCashRequest
nil, // 15: wallet.GetWalletReply.TotalEntry
(*StatusReply)(nil), // 16: wallet.StatusReply
(*protobuf.StatusReply)(nil), // 16: blocks.StatusReply
}
var file_wallet_proto_depIdxs = []int32{
var file_module_finance_wallet_proto_wallet_proto_depIdxs = []int32{
15, // 0: wallet.GetWalletReply.total:type_name -> wallet.GetWalletReply.TotalEntry
4, // 1: wallet.TransactionsReply.records:type_name -> wallet.Transaction
4, // 2: wallet.RefundReply.transaction:type_name -> wallet.Transaction
@@ -1242,13 +1242,13 @@ var file_wallet_proto_depIdxs = []int32{
11, // 10: wallet.Basic.RmBankCard:input_type -> wallet.RmBankCardRequest
14, // 11: wallet.Basic.ApplyCash:input_type -> wallet.ApplyCashRequest
1, // 12: wallet.Basic.GetWallet:output_type -> wallet.GetWalletReply
16, // 13: wallet.Basic.SetPayPassword:output_type -> wallet.StatusReply
16, // 14: wallet.Basic.BindPaymentId:output_type -> wallet.StatusReply
16, // 13: wallet.Basic.SetPayPassword:output_type -> blocks.StatusReply
16, // 14: wallet.Basic.BindPaymentId:output_type -> blocks.StatusReply
3, // 15: wallet.Basic.Transactions:output_type -> wallet.TransactionsReply
16, // 16: wallet.Basic.AddBankCard:output_type -> wallet.StatusReply
16, // 16: wallet.Basic.AddBankCard:output_type -> blocks.StatusReply
12, // 17: wallet.Basic.GetBankCard:output_type -> wallet.GetBankCardReply
16, // 18: wallet.Basic.RmBankCard:output_type -> wallet.StatusReply
16, // 19: wallet.Basic.ApplyCash:output_type -> wallet.StatusReply
16, // 18: wallet.Basic.RmBankCard:output_type -> blocks.StatusReply
16, // 19: wallet.Basic.ApplyCash:output_type -> blocks.StatusReply
12, // [12:20] is the sub-list for method output_type
4, // [4:12] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
@@ -1256,27 +1256,26 @@ var file_wallet_proto_depIdxs = []int32{
0, // [0:4] is the sub-list for field type_name
}
func init() { file_wallet_proto_init() }
func file_wallet_proto_init() {
if File_wallet_proto != nil {
func init() { file_module_finance_wallet_proto_wallet_proto_init() }
func file_module_finance_wallet_proto_wallet_proto_init() {
if File_module_finance_wallet_proto_wallet_proto != nil {
return
}
file_blocks_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_wallet_proto_rawDesc), len(file_wallet_proto_rawDesc)),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_finance_wallet_proto_wallet_proto_rawDesc), len(file_module_finance_wallet_proto_wallet_proto_rawDesc)),
NumEnums: 0,
NumMessages: 16,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_wallet_proto_goTypes,
DependencyIndexes: file_wallet_proto_depIdxs,
MessageInfos: file_wallet_proto_msgTypes,
GoTypes: file_module_finance_wallet_proto_wallet_proto_goTypes,
DependencyIndexes: file_module_finance_wallet_proto_wallet_proto_depIdxs,
MessageInfos: file_module_finance_wallet_proto_wallet_proto_msgTypes,
}.Build()
File_wallet_proto = out.File
file_wallet_proto_goTypes = nil
file_wallet_proto_depIdxs = nil
File_module_finance_wallet_proto_wallet_proto = out.File
file_module_finance_wallet_proto_wallet_proto_goTypes = nil
file_module_finance_wallet_proto_wallet_proto_depIdxs = nil
}

View File

@@ -1,5 +1,5 @@
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
// source: wallet.proto
// source: module/finance/wallet/proto/wallet.proto
/*
Package wallet is a reverse proxy.

View File

@@ -1,12 +1,13 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.5.1
// - protoc (unknown)
// source: wallet.proto
// - protoc-gen-go-grpc v1.6.2
// - protoc v7.35.0
// source: module/finance/wallet/proto/wallet.proto
package wallet
import (
protobuf "bsm/full/protobuf"
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
@@ -33,22 +34,22 @@ const (
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type BasicClient interface {
//获取钱包信息
// 获取钱包信息
GetWallet(ctx context.Context, in *GetWalletRequest, opts ...grpc.CallOption) (*GetWalletReply, error)
//设置支付密码
SetPayPassword(ctx context.Context, in *SetPayPasswordRequest, opts ...grpc.CallOption) (*StatusReply, error)
//绑定微信或支付宝账户
BindPaymentId(ctx context.Context, in *BindPaymentIDRequest, opts ...grpc.CallOption) (*StatusReply, error)
//查询交易记录
// 设置支付密码
SetPayPassword(ctx context.Context, in *SetPayPasswordRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
// 绑定微信或支付宝账户
BindPaymentId(ctx context.Context, in *BindPaymentIDRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
// 查询交易记录
Transactions(ctx context.Context, in *TransactionsRequest, opts ...grpc.CallOption) (*TransactionsReply, error)
//添加银行卡
AddBankCard(ctx context.Context, in *AddBankCardRequest, opts ...grpc.CallOption) (*StatusReply, error)
//获取用户银行卡列表
// 添加银行卡
AddBankCard(ctx context.Context, in *AddBankCardRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
// 获取用户银行卡列表
GetBankCard(ctx context.Context, in *FinanceEmpty, opts ...grpc.CallOption) (*GetBankCardReply, error)
//删除银行卡
RmBankCard(ctx context.Context, in *RmBankCardRequest, opts ...grpc.CallOption) (*StatusReply, error)
//申请提现
ApplyCash(ctx context.Context, in *ApplyCashRequest, opts ...grpc.CallOption) (*StatusReply, error)
// 删除银行卡
RmBankCard(ctx context.Context, in *RmBankCardRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
// 申请提现
ApplyCash(ctx context.Context, in *ApplyCashRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
}
type basicClient struct {
@@ -69,9 +70,9 @@ func (c *basicClient) GetWallet(ctx context.Context, in *GetWalletRequest, opts
return out, nil
}
func (c *basicClient) SetPayPassword(ctx context.Context, in *SetPayPasswordRequest, opts ...grpc.CallOption) (*StatusReply, error) {
func (c *basicClient) SetPayPassword(ctx context.Context, in *SetPayPasswordRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(StatusReply)
out := new(protobuf.StatusReply)
err := c.cc.Invoke(ctx, Basic_SetPayPassword_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -79,9 +80,9 @@ func (c *basicClient) SetPayPassword(ctx context.Context, in *SetPayPasswordRequ
return out, nil
}
func (c *basicClient) BindPaymentId(ctx context.Context, in *BindPaymentIDRequest, opts ...grpc.CallOption) (*StatusReply, error) {
func (c *basicClient) BindPaymentId(ctx context.Context, in *BindPaymentIDRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(StatusReply)
out := new(protobuf.StatusReply)
err := c.cc.Invoke(ctx, Basic_BindPaymentId_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -99,9 +100,9 @@ func (c *basicClient) Transactions(ctx context.Context, in *TransactionsRequest,
return out, nil
}
func (c *basicClient) AddBankCard(ctx context.Context, in *AddBankCardRequest, opts ...grpc.CallOption) (*StatusReply, error) {
func (c *basicClient) AddBankCard(ctx context.Context, in *AddBankCardRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(StatusReply)
out := new(protobuf.StatusReply)
err := c.cc.Invoke(ctx, Basic_AddBankCard_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -119,9 +120,9 @@ func (c *basicClient) GetBankCard(ctx context.Context, in *FinanceEmpty, opts ..
return out, nil
}
func (c *basicClient) RmBankCard(ctx context.Context, in *RmBankCardRequest, opts ...grpc.CallOption) (*StatusReply, error) {
func (c *basicClient) RmBankCard(ctx context.Context, in *RmBankCardRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(StatusReply)
out := new(protobuf.StatusReply)
err := c.cc.Invoke(ctx, Basic_RmBankCard_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -129,9 +130,9 @@ func (c *basicClient) RmBankCard(ctx context.Context, in *RmBankCardRequest, opt
return out, nil
}
func (c *basicClient) ApplyCash(ctx context.Context, in *ApplyCashRequest, opts ...grpc.CallOption) (*StatusReply, error) {
func (c *basicClient) ApplyCash(ctx context.Context, in *ApplyCashRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(StatusReply)
out := new(protobuf.StatusReply)
err := c.cc.Invoke(ctx, Basic_ApplyCash_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -140,29 +141,28 @@ func (c *basicClient) ApplyCash(ctx context.Context, in *ApplyCashRequest, opts
}
// BasicServer is the server API for Basic service.
// All implementations must embed UnimplementedBasicServer
// All implementations should embed UnimplementedBasicServer
// for forward compatibility.
type BasicServer interface {
//获取钱包信息
// 获取钱包信息
GetWallet(context.Context, *GetWalletRequest) (*GetWalletReply, error)
//设置支付密码
SetPayPassword(context.Context, *SetPayPasswordRequest) (*StatusReply, error)
//绑定微信或支付宝账户
BindPaymentId(context.Context, *BindPaymentIDRequest) (*StatusReply, error)
//查询交易记录
// 设置支付密码
SetPayPassword(context.Context, *SetPayPasswordRequest) (*protobuf.StatusReply, error)
// 绑定微信或支付宝账户
BindPaymentId(context.Context, *BindPaymentIDRequest) (*protobuf.StatusReply, error)
// 查询交易记录
Transactions(context.Context, *TransactionsRequest) (*TransactionsReply, error)
//添加银行卡
AddBankCard(context.Context, *AddBankCardRequest) (*StatusReply, error)
//获取用户银行卡列表
// 添加银行卡
AddBankCard(context.Context, *AddBankCardRequest) (*protobuf.StatusReply, error)
// 获取用户银行卡列表
GetBankCard(context.Context, *FinanceEmpty) (*GetBankCardReply, error)
//删除银行卡
RmBankCard(context.Context, *RmBankCardRequest) (*StatusReply, error)
//申请提现
ApplyCash(context.Context, *ApplyCashRequest) (*StatusReply, error)
mustEmbedUnimplementedBasicServer()
// 删除银行卡
RmBankCard(context.Context, *RmBankCardRequest) (*protobuf.StatusReply, error)
// 申请提现
ApplyCash(context.Context, *ApplyCashRequest) (*protobuf.StatusReply, error)
}
// UnimplementedBasicServer must be embedded to have
// UnimplementedBasicServer should be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
@@ -170,31 +170,30 @@ type BasicServer interface {
type UnimplementedBasicServer struct{}
func (UnimplementedBasicServer) GetWallet(context.Context, *GetWalletRequest) (*GetWalletReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetWallet not implemented")
return nil, status.Error(codes.Unimplemented, "method GetWallet not implemented")
}
func (UnimplementedBasicServer) SetPayPassword(context.Context, *SetPayPasswordRequest) (*StatusReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetPayPassword not implemented")
func (UnimplementedBasicServer) SetPayPassword(context.Context, *SetPayPasswordRequest) (*protobuf.StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method SetPayPassword not implemented")
}
func (UnimplementedBasicServer) BindPaymentId(context.Context, *BindPaymentIDRequest) (*StatusReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method BindPaymentId not implemented")
func (UnimplementedBasicServer) BindPaymentId(context.Context, *BindPaymentIDRequest) (*protobuf.StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method BindPaymentId not implemented")
}
func (UnimplementedBasicServer) Transactions(context.Context, *TransactionsRequest) (*TransactionsReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method Transactions not implemented")
return nil, status.Error(codes.Unimplemented, "method Transactions not implemented")
}
func (UnimplementedBasicServer) AddBankCard(context.Context, *AddBankCardRequest) (*StatusReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddBankCard not implemented")
func (UnimplementedBasicServer) AddBankCard(context.Context, *AddBankCardRequest) (*protobuf.StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method AddBankCard not implemented")
}
func (UnimplementedBasicServer) GetBankCard(context.Context, *FinanceEmpty) (*GetBankCardReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBankCard not implemented")
return nil, status.Error(codes.Unimplemented, "method GetBankCard not implemented")
}
func (UnimplementedBasicServer) RmBankCard(context.Context, *RmBankCardRequest) (*StatusReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method RmBankCard not implemented")
func (UnimplementedBasicServer) RmBankCard(context.Context, *RmBankCardRequest) (*protobuf.StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method RmBankCard not implemented")
}
func (UnimplementedBasicServer) ApplyCash(context.Context, *ApplyCashRequest) (*StatusReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method ApplyCash not implemented")
func (UnimplementedBasicServer) ApplyCash(context.Context, *ApplyCashRequest) (*protobuf.StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method ApplyCash not implemented")
}
func (UnimplementedBasicServer) mustEmbedUnimplementedBasicServer() {}
func (UnimplementedBasicServer) testEmbeddedByValue() {}
func (UnimplementedBasicServer) testEmbeddedByValue() {}
// UnsafeBasicServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to BasicServer will
@@ -204,7 +203,7 @@ type UnsafeBasicServer interface {
}
func RegisterBasicServer(s grpc.ServiceRegistrar, srv BasicServer) {
// If the following call pancis, it indicates UnimplementedBasicServer was
// If the following call panics, it indicates UnimplementedBasicServer was
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
@@ -399,5 +398,5 @@ var Basic_ServiceDesc = grpc.ServiceDesc{
},
},
Streams: []grpc.StreamDesc{},
Metadata: "wallet.proto",
Metadata: "module/finance/wallet/proto/wallet.proto",
}

View File

@@ -1,8 +1,8 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.8
// protoc (unknown)
// source: wechat.proto
// protoc-gen-go v1.36.11
// protoc v7.35.0
// source: module/finance/wallet/proto/wechat.proto
package wallet
@@ -35,7 +35,7 @@ type WxpayJSAPIPreOrderRequest struct {
func (x *WxpayJSAPIPreOrderRequest) Reset() {
*x = WxpayJSAPIPreOrderRequest{}
mi := &file_wechat_proto_msgTypes[0]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -47,7 +47,7 @@ func (x *WxpayJSAPIPreOrderRequest) String() string {
func (*WxpayJSAPIPreOrderRequest) ProtoMessage() {}
func (x *WxpayJSAPIPreOrderRequest) ProtoReflect() protoreflect.Message {
mi := &file_wechat_proto_msgTypes[0]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -60,7 +60,7 @@ func (x *WxpayJSAPIPreOrderRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use WxpayJSAPIPreOrderRequest.ProtoReflect.Descriptor instead.
func (*WxpayJSAPIPreOrderRequest) Descriptor() ([]byte, []int) {
return file_wechat_proto_rawDescGZIP(), []int{0}
return file_module_finance_wallet_proto_wechat_proto_rawDescGZIP(), []int{0}
}
func (x *WxpayJSAPIPreOrderRequest) GetUserIdentification() string {
@@ -119,7 +119,7 @@ type WxpayJSAPIPreOrderReply struct {
func (x *WxpayJSAPIPreOrderReply) Reset() {
*x = WxpayJSAPIPreOrderReply{}
mi := &file_wechat_proto_msgTypes[1]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -131,7 +131,7 @@ func (x *WxpayJSAPIPreOrderReply) String() string {
func (*WxpayJSAPIPreOrderReply) ProtoMessage() {}
func (x *WxpayJSAPIPreOrderReply) ProtoReflect() protoreflect.Message {
mi := &file_wechat_proto_msgTypes[1]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -144,7 +144,7 @@ func (x *WxpayJSAPIPreOrderReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use WxpayJSAPIPreOrderReply.ProtoReflect.Descriptor instead.
func (*WxpayJSAPIPreOrderReply) Descriptor() ([]byte, []int) {
return file_wechat_proto_rawDescGZIP(), []int{1}
return file_module_finance_wallet_proto_wechat_proto_rawDescGZIP(), []int{1}
}
func (x *WxpayJSAPIPreOrderReply) GetPrepayId() string {
@@ -201,7 +201,7 @@ type WxpayAppPreOrderRequest struct {
func (x *WxpayAppPreOrderRequest) Reset() {
*x = WxpayAppPreOrderRequest{}
mi := &file_wechat_proto_msgTypes[2]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -213,7 +213,7 @@ func (x *WxpayAppPreOrderRequest) String() string {
func (*WxpayAppPreOrderRequest) ProtoMessage() {}
func (x *WxpayAppPreOrderRequest) ProtoReflect() protoreflect.Message {
mi := &file_wechat_proto_msgTypes[2]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -226,7 +226,7 @@ func (x *WxpayAppPreOrderRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use WxpayAppPreOrderRequest.ProtoReflect.Descriptor instead.
func (*WxpayAppPreOrderRequest) Descriptor() ([]byte, []int) {
return file_wechat_proto_rawDescGZIP(), []int{2}
return file_module_finance_wallet_proto_wechat_proto_rawDescGZIP(), []int{2}
}
func (x *WxpayAppPreOrderRequest) GetUserIdentification() string {
@@ -268,7 +268,7 @@ type WxpayAppPreOrderReply struct {
func (x *WxpayAppPreOrderReply) Reset() {
*x = WxpayAppPreOrderReply{}
mi := &file_wechat_proto_msgTypes[3]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -280,7 +280,7 @@ func (x *WxpayAppPreOrderReply) String() string {
func (*WxpayAppPreOrderReply) ProtoMessage() {}
func (x *WxpayAppPreOrderReply) ProtoReflect() protoreflect.Message {
mi := &file_wechat_proto_msgTypes[3]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -293,7 +293,7 @@ func (x *WxpayAppPreOrderReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use WxpayAppPreOrderReply.ProtoReflect.Descriptor instead.
func (*WxpayAppPreOrderReply) Descriptor() ([]byte, []int) {
return file_wechat_proto_rawDescGZIP(), []int{3}
return file_module_finance_wallet_proto_wechat_proto_rawDescGZIP(), []int{3}
}
func (x *WxpayAppPreOrderReply) GetPrepayId() string {
@@ -329,7 +329,7 @@ type WxpayNativePreOrderRequest struct {
func (x *WxpayNativePreOrderRequest) Reset() {
*x = WxpayNativePreOrderRequest{}
mi := &file_wechat_proto_msgTypes[4]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -341,7 +341,7 @@ func (x *WxpayNativePreOrderRequest) String() string {
func (*WxpayNativePreOrderRequest) ProtoMessage() {}
func (x *WxpayNativePreOrderRequest) ProtoReflect() protoreflect.Message {
mi := &file_wechat_proto_msgTypes[4]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -354,7 +354,7 @@ func (x *WxpayNativePreOrderRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use WxpayNativePreOrderRequest.ProtoReflect.Descriptor instead.
func (*WxpayNativePreOrderRequest) Descriptor() ([]byte, []int) {
return file_wechat_proto_rawDescGZIP(), []int{4}
return file_module_finance_wallet_proto_wechat_proto_rawDescGZIP(), []int{4}
}
func (x *WxpayNativePreOrderRequest) GetUserIdentification() string {
@@ -394,7 +394,7 @@ type WxpayNativePreOrderReply struct {
func (x *WxpayNativePreOrderReply) Reset() {
*x = WxpayNativePreOrderReply{}
mi := &file_wechat_proto_msgTypes[5]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -406,7 +406,7 @@ func (x *WxpayNativePreOrderReply) String() string {
func (*WxpayNativePreOrderReply) ProtoMessage() {}
func (x *WxpayNativePreOrderReply) ProtoReflect() protoreflect.Message {
mi := &file_wechat_proto_msgTypes[5]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -419,7 +419,7 @@ func (x *WxpayNativePreOrderReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use WxpayNativePreOrderReply.ProtoReflect.Descriptor instead.
func (*WxpayNativePreOrderReply) Descriptor() ([]byte, []int) {
return file_wechat_proto_rawDescGZIP(), []int{5}
return file_module_finance_wallet_proto_wechat_proto_rawDescGZIP(), []int{5}
}
func (x *WxpayNativePreOrderReply) GetCodeUrl() string {
@@ -442,7 +442,7 @@ type WxpayTransferRequest struct {
func (x *WxpayTransferRequest) Reset() {
*x = WxpayTransferRequest{}
mi := &file_wechat_proto_msgTypes[6]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -454,7 +454,7 @@ func (x *WxpayTransferRequest) String() string {
func (*WxpayTransferRequest) ProtoMessage() {}
func (x *WxpayTransferRequest) ProtoReflect() protoreflect.Message {
mi := &file_wechat_proto_msgTypes[6]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -467,7 +467,7 @@ func (x *WxpayTransferRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use WxpayTransferRequest.ProtoReflect.Descriptor instead.
func (*WxpayTransferRequest) Descriptor() ([]byte, []int) {
return file_wechat_proto_rawDescGZIP(), []int{6}
return file_module_finance_wallet_proto_wechat_proto_rawDescGZIP(), []int{6}
}
func (x *WxpayTransferRequest) GetUserIdentification() string {
@@ -513,7 +513,7 @@ type WxpayTransferReply struct {
func (x *WxpayTransferReply) Reset() {
*x = WxpayTransferReply{}
mi := &file_wechat_proto_msgTypes[7]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -525,7 +525,7 @@ func (x *WxpayTransferReply) String() string {
func (*WxpayTransferReply) ProtoMessage() {}
func (x *WxpayTransferReply) ProtoReflect() protoreflect.Message {
mi := &file_wechat_proto_msgTypes[7]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -538,7 +538,7 @@ func (x *WxpayTransferReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use WxpayTransferReply.ProtoReflect.Descriptor instead.
func (*WxpayTransferReply) Descriptor() ([]byte, []int) {
return file_wechat_proto_rawDescGZIP(), []int{7}
return file_module_finance_wallet_proto_wechat_proto_rawDescGZIP(), []int{7}
}
type WxCallBackResource struct {
@@ -554,7 +554,7 @@ type WxCallBackResource struct {
func (x *WxCallBackResource) Reset() {
*x = WxCallBackResource{}
mi := &file_wechat_proto_msgTypes[8]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -566,7 +566,7 @@ func (x *WxCallBackResource) String() string {
func (*WxCallBackResource) ProtoMessage() {}
func (x *WxCallBackResource) ProtoReflect() protoreflect.Message {
mi := &file_wechat_proto_msgTypes[8]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -579,7 +579,7 @@ func (x *WxCallBackResource) ProtoReflect() protoreflect.Message {
// Deprecated: Use WxCallBackResource.ProtoReflect.Descriptor instead.
func (*WxCallBackResource) Descriptor() ([]byte, []int) {
return file_wechat_proto_rawDescGZIP(), []int{8}
return file_module_finance_wallet_proto_wechat_proto_rawDescGZIP(), []int{8}
}
func (x *WxCallBackResource) GetOriginalType() string {
@@ -632,7 +632,7 @@ type WxCallBackSignInfo struct {
func (x *WxCallBackSignInfo) Reset() {
*x = WxCallBackSignInfo{}
mi := &file_wechat_proto_msgTypes[9]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -644,7 +644,7 @@ func (x *WxCallBackSignInfo) String() string {
func (*WxCallBackSignInfo) ProtoMessage() {}
func (x *WxCallBackSignInfo) ProtoReflect() protoreflect.Message {
mi := &file_wechat_proto_msgTypes[9]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -657,7 +657,7 @@ func (x *WxCallBackSignInfo) ProtoReflect() protoreflect.Message {
// Deprecated: Use WxCallBackSignInfo.ProtoReflect.Descriptor instead.
func (*WxCallBackSignInfo) Descriptor() ([]byte, []int) {
return file_wechat_proto_rawDescGZIP(), []int{9}
return file_module_finance_wallet_proto_wechat_proto_rawDescGZIP(), []int{9}
}
func (x *WxCallBackSignInfo) GetTransactionId() string {
@@ -724,7 +724,7 @@ type WxCallBackRequest struct {
func (x *WxCallBackRequest) Reset() {
*x = WxCallBackRequest{}
mi := &file_wechat_proto_msgTypes[10]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -736,7 +736,7 @@ func (x *WxCallBackRequest) String() string {
func (*WxCallBackRequest) ProtoMessage() {}
func (x *WxCallBackRequest) ProtoReflect() protoreflect.Message {
mi := &file_wechat_proto_msgTypes[10]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -749,7 +749,7 @@ func (x *WxCallBackRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use WxCallBackRequest.ProtoReflect.Descriptor instead.
func (*WxCallBackRequest) Descriptor() ([]byte, []int) {
return file_wechat_proto_rawDescGZIP(), []int{10}
return file_module_finance_wallet_proto_wechat_proto_rawDescGZIP(), []int{10}
}
func (x *WxCallBackRequest) GetId() string {
@@ -811,7 +811,7 @@ type CallBackReply struct {
func (x *CallBackReply) Reset() {
*x = CallBackReply{}
mi := &file_wechat_proto_msgTypes[11]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -823,7 +823,7 @@ func (x *CallBackReply) String() string {
func (*CallBackReply) ProtoMessage() {}
func (x *CallBackReply) ProtoReflect() protoreflect.Message {
mi := &file_wechat_proto_msgTypes[11]
mi := &file_module_finance_wallet_proto_wechat_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -836,7 +836,7 @@ func (x *CallBackReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use CallBackReply.ProtoReflect.Descriptor instead.
func (*CallBackReply) Descriptor() ([]byte, []int) {
return file_wechat_proto_rawDescGZIP(), []int{11}
return file_module_finance_wallet_proto_wechat_proto_rawDescGZIP(), []int{11}
}
func (x *CallBackReply) GetCode() string {
@@ -853,11 +853,11 @@ func (x *CallBackReply) GetMessage() string {
return ""
}
var File_wechat_proto protoreflect.FileDescriptor
var File_module_finance_wallet_proto_wechat_proto protoreflect.FileDescriptor
const file_wechat_proto_rawDesc = "" +
const file_module_finance_wallet_proto_wechat_proto_rawDesc = "" +
"\n" +
"\x1bfinance/wallet/wechat.proto\x12\x06wallet\"\xdc\x01\n" +
"(module/finance/wallet/proto/wechat.proto\x12\x06wallet\"\xdc\x01\n" +
"\x19WxpayJSAPIPreOrderRequest\x12/\n" +
"\x13user_identification\x18\x01 \x01(\tR\x12userIdentification\x12\x16\n" +
"\x06amount\x18\x02 \x01(\x03R\x06amount\x12\x1b\n" +
@@ -934,23 +934,22 @@ const file_wechat_proto_rawDesc = "" +
"\x0eNativePreOrder\x12\".wallet.WxpayNativePreOrderRequest\x1a .wallet.WxpayNativePreOrderReply\"\x00\x12F\n" +
"\bTransfer\x12\x1c.wallet.WxpayTransferRequest\x1a\x1a.wallet.WxpayTransferReply\"\x00\x12@\n" +
"\n" +
"WxCallback\x12\x19.wallet.WxCallBackRequest\x1a\x15.wallet.CallBackReply\"\x00B\n" +
"Z\b.;walletb\x06proto3"
"WxCallback\x12\x19.wallet.WxCallBackRequest\x1a\x15.wallet.CallBackReply\"\x00B*Z(bsm/full/module/finance/wallet/pb;walletb\x06proto3"
var (
file_wechat_proto_rawDescOnce sync.Once
file_wechat_proto_rawDescData []byte
file_module_finance_wallet_proto_wechat_proto_rawDescOnce sync.Once
file_module_finance_wallet_proto_wechat_proto_rawDescData []byte
)
func file_wechat_proto_rawDescGZIP() []byte {
file_wechat_proto_rawDescOnce.Do(func() {
file_wechat_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_wechat_proto_rawDesc), len(file_wechat_proto_rawDesc)))
func file_module_finance_wallet_proto_wechat_proto_rawDescGZIP() []byte {
file_module_finance_wallet_proto_wechat_proto_rawDescOnce.Do(func() {
file_module_finance_wallet_proto_wechat_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_finance_wallet_proto_wechat_proto_rawDesc), len(file_module_finance_wallet_proto_wechat_proto_rawDesc)))
})
return file_wechat_proto_rawDescData
return file_module_finance_wallet_proto_wechat_proto_rawDescData
}
var file_wechat_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_wechat_proto_goTypes = []any{
var file_module_finance_wallet_proto_wechat_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_module_finance_wallet_proto_wechat_proto_goTypes = []any{
(*WxpayJSAPIPreOrderRequest)(nil), // 0: wallet.WxpayJSAPIPreOrderRequest
(*WxpayJSAPIPreOrderReply)(nil), // 1: wallet.WxpayJSAPIPreOrderReply
(*WxpayAppPreOrderRequest)(nil), // 2: wallet.WxpayAppPreOrderRequest
@@ -964,7 +963,7 @@ var file_wechat_proto_goTypes = []any{
(*WxCallBackRequest)(nil), // 10: wallet.WxCallBackRequest
(*CallBackReply)(nil), // 11: wallet.CallBackReply
}
var file_wechat_proto_depIdxs = []int32{
var file_module_finance_wallet_proto_wechat_proto_depIdxs = []int32{
8, // 0: wallet.WxCallBackRequest.resource:type_name -> wallet.WxCallBackResource
9, // 1: wallet.WxCallBackRequest.SignInfo:type_name -> wallet.WxCallBackSignInfo
0, // 2: wallet.Wechat.JsapiPreOrder:input_type -> wallet.WxpayJSAPIPreOrderRequest
@@ -984,26 +983,26 @@ var file_wechat_proto_depIdxs = []int32{
0, // [0:2] is the sub-list for field type_name
}
func init() { file_wechat_proto_init() }
func file_wechat_proto_init() {
if File_wechat_proto != nil {
func init() { file_module_finance_wallet_proto_wechat_proto_init() }
func file_module_finance_wallet_proto_wechat_proto_init() {
if File_module_finance_wallet_proto_wechat_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_wechat_proto_rawDesc), len(file_wechat_proto_rawDesc)),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_finance_wallet_proto_wechat_proto_rawDesc), len(file_module_finance_wallet_proto_wechat_proto_rawDesc)),
NumEnums: 0,
NumMessages: 12,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_wechat_proto_goTypes,
DependencyIndexes: file_wechat_proto_depIdxs,
MessageInfos: file_wechat_proto_msgTypes,
GoTypes: file_module_finance_wallet_proto_wechat_proto_goTypes,
DependencyIndexes: file_module_finance_wallet_proto_wechat_proto_depIdxs,
MessageInfos: file_module_finance_wallet_proto_wechat_proto_msgTypes,
}.Build()
File_wechat_proto = out.File
file_wechat_proto_goTypes = nil
file_wechat_proto_depIdxs = nil
File_module_finance_wallet_proto_wechat_proto = out.File
file_module_finance_wallet_proto_wechat_proto_goTypes = nil
file_module_finance_wallet_proto_wechat_proto_depIdxs = nil
}

View File

@@ -1,5 +1,5 @@
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
// source: wechat.proto
// source: module/finance/wallet/proto/wechat.proto
/*
Package wallet is a reverse proxy.

View File

@@ -1,8 +1,8 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.5.1
// - protoc (unknown)
// source: wechat.proto
// - protoc-gen-go-grpc v1.6.2
// - protoc v7.35.0
// source: module/finance/wallet/proto/wechat.proto
package wallet
@@ -30,15 +30,15 @@ const (
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type WechatClient interface {
//微信JSAPI下单
// 微信JSAPI下单
JsapiPreOrder(ctx context.Context, in *WxpayJSAPIPreOrderRequest, opts ...grpc.CallOption) (*WxpayJSAPIPreOrderReply, error)
//微信APP支付下单
// 微信APP支付下单
AppPreOrder(ctx context.Context, in *WxpayAppPreOrderRequest, opts ...grpc.CallOption) (*WxpayAppPreOrderReply, error)
//微信native二维码支付下单
// 微信native二维码支付下单
NativePreOrder(ctx context.Context, in *WxpayNativePreOrderRequest, opts ...grpc.CallOption) (*WxpayNativePreOrderReply, error)
//微信转账到零钱
// 微信转账到零钱
Transfer(ctx context.Context, in *WxpayTransferRequest, opts ...grpc.CallOption) (*WxpayTransferReply, error)
//微信支付回调
// 微信支付回调
WxCallback(ctx context.Context, in *WxCallBackRequest, opts ...grpc.CallOption) (*CallBackReply, error)
}
@@ -101,23 +101,22 @@ func (c *wechatClient) WxCallback(ctx context.Context, in *WxCallBackRequest, op
}
// WechatServer is the server API for Wechat service.
// All implementations must embed UnimplementedWechatServer
// All implementations should embed UnimplementedWechatServer
// for forward compatibility.
type WechatServer interface {
//微信JSAPI下单
// 微信JSAPI下单
JsapiPreOrder(context.Context, *WxpayJSAPIPreOrderRequest) (*WxpayJSAPIPreOrderReply, error)
//微信APP支付下单
// 微信APP支付下单
AppPreOrder(context.Context, *WxpayAppPreOrderRequest) (*WxpayAppPreOrderReply, error)
//微信native二维码支付下单
// 微信native二维码支付下单
NativePreOrder(context.Context, *WxpayNativePreOrderRequest) (*WxpayNativePreOrderReply, error)
//微信转账到零钱
// 微信转账到零钱
Transfer(context.Context, *WxpayTransferRequest) (*WxpayTransferReply, error)
//微信支付回调
// 微信支付回调
WxCallback(context.Context, *WxCallBackRequest) (*CallBackReply, error)
mustEmbedUnimplementedWechatServer()
}
// UnimplementedWechatServer must be embedded to have
// UnimplementedWechatServer should be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
@@ -125,22 +124,21 @@ type WechatServer interface {
type UnimplementedWechatServer struct{}
func (UnimplementedWechatServer) JsapiPreOrder(context.Context, *WxpayJSAPIPreOrderRequest) (*WxpayJSAPIPreOrderReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method JsapiPreOrder not implemented")
return nil, status.Error(codes.Unimplemented, "method JsapiPreOrder not implemented")
}
func (UnimplementedWechatServer) AppPreOrder(context.Context, *WxpayAppPreOrderRequest) (*WxpayAppPreOrderReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method AppPreOrder not implemented")
return nil, status.Error(codes.Unimplemented, "method AppPreOrder not implemented")
}
func (UnimplementedWechatServer) NativePreOrder(context.Context, *WxpayNativePreOrderRequest) (*WxpayNativePreOrderReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method NativePreOrder not implemented")
return nil, status.Error(codes.Unimplemented, "method NativePreOrder not implemented")
}
func (UnimplementedWechatServer) Transfer(context.Context, *WxpayTransferRequest) (*WxpayTransferReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method Transfer not implemented")
return nil, status.Error(codes.Unimplemented, "method Transfer not implemented")
}
func (UnimplementedWechatServer) WxCallback(context.Context, *WxCallBackRequest) (*CallBackReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method WxCallback not implemented")
return nil, status.Error(codes.Unimplemented, "method WxCallback not implemented")
}
func (UnimplementedWechatServer) mustEmbedUnimplementedWechatServer() {}
func (UnimplementedWechatServer) testEmbeddedByValue() {}
func (UnimplementedWechatServer) testEmbeddedByValue() {}
// UnsafeWechatServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to WechatServer will
@@ -150,7 +148,7 @@ type UnsafeWechatServer interface {
}
func RegisterWechatServer(s grpc.ServiceRegistrar, srv WechatServer) {
// If the following call pancis, it indicates UnimplementedWechatServer was
// If the following call panics, it indicates UnimplementedWechatServer was
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
@@ -279,5 +277,5 @@ var Wechat_ServiceDesc = grpc.ServiceDesc{
},
},
Streams: []grpc.StreamDesc{},
Metadata: "wechat.proto",
Metadata: "module/finance/wallet/proto/wechat.proto",
}

View File

@@ -1,6 +1,6 @@
syntax = "proto3";
package wallet;
option go_package = ".;wallet";
option go_package = "bsm/full/module/finance/wallet/pb;wallet";
service Alipay {
//支付宝wap支付

View File

@@ -1,35 +0,0 @@
syntax = "proto3";
package wallet;
option go_package = ".;wallet";
message FetchRequest {
int64 page_no=1; // 页数
int64 page_size=2; // 每页记录数
map<string,string> params=3; // 条件参数,key=val,eg key:category_id=?,vlaue=11
}
message IdentRequest{
int64 id = 1; // 唯一ID
string identity = 2; // 唯一码
}
message VersionRequest {
int64 version=1; // 时序版本号
}
message SearchRequest {
string keyword=1; //关键词
}
message StatusReply{
int32 code=1; // 状态码
string message=2; // 状态说明
string details=3; // 数据
int64 timeseq=4; // 响应时间序列
}
message Empty{
}

View File

@@ -1,25 +1,25 @@
syntax = "proto3";
package wallet;
option go_package = ".;wallet";
import "blocks.proto";
option go_package = "bsm/full/module/finance/wallet/pb;wallet";
import "protobuf/blocks.proto";
service Payment {
rpc Hello(Empty) returns (PaymentReply) {}
rpc Hello(blocks.Empty) returns (PaymentReply) {}
//获取平台支持的支付网关
rpc Way(WayRequest) returns (WayReply) {}
//获取支付的详情
rpc Get(IdentRequest) returns (PaymentItem){}
rpc Get(blocks.IdentRequest) returns (PaymentItem){}
//支付-电商订单
rpc ByOrder (OrderRequest) returns (PaymentReply) {};
//支付-充值
rpc ByCharge (ChargeRequest) returns (PaymentReply) {};
rpc ByCharge (ChargeRequest) returns (PaymentReply) {};
//回调更新支付的结果和状态
rpc Callback (CallbackRequest) returns (StatusReply) {};
rpc Callback (CallbackRequest) returns (blocks.StatusReply) {};
}
message WayRequest {
@@ -52,7 +52,7 @@ message ChargeRequest {
string remark = 2; //备注
int32 pay_channel = 3; //支付模型WECHATALIPAY
string pay_type = 4; //支付类型 JSAPI:微信浏览器内支付 APP:app支付 MWEB:H5支付 NATIVE:Native支付,pc端生成二维码供用户扫码支付,QUICK_MSECURITY_PAY:app支付 QUICK_WAP_WAY:手机网站支付 FAST_INSTANT_TRADE_PAY:pc网站支付
string desc=5; //支付描述
string open_id=6; //微信用户的OpenID
}
@@ -75,6 +75,6 @@ message CallbackRequest {
}
message PaymentReply {
int64 code =1;
int64 code =1;
map<string,string> result =2; //预支付返回
}

View File

@@ -1,33 +1,33 @@
syntax = "proto3";
package wallet;
option go_package = ".;wallet";
import "blocks.proto";
option go_package = "bsm/full/module/finance/wallet/pb;wallet";
import "protobuf/blocks.proto";
service Basic {
//获取钱包信息
rpc GetWallet(GetWalletRequest) returns (GetWalletReply) {}
//设置支付密码
rpc SetPayPassword(SetPayPasswordRequest) returns (StatusReply) {}
rpc SetPayPassword(SetPayPasswordRequest) returns (blocks.StatusReply) {}
//绑定微信或支付宝账户
rpc BindPaymentId(BindPaymentIDRequest) returns (StatusReply) {}
rpc BindPaymentId(BindPaymentIDRequest) returns (blocks.StatusReply) {}
//查询交易记录
rpc Transactions(TransactionsRequest) returns (TransactionsReply) {}
//添加银行卡
rpc AddBankCard (AddBankCardRequest) returns (StatusReply) {};
rpc AddBankCard (AddBankCardRequest) returns (blocks.StatusReply) {};
//获取用户银行卡列表
rpc GetBankCard (FinanceEmpty) returns (GetBankCardReply) {};
rpc GetBankCard (FinanceEmpty) returns (GetBankCardReply) {};
//删除银行卡
rpc RmBankCard (RmBankCardRequest) returns (StatusReply) {};
rpc RmBankCard (RmBankCardRequest) returns (blocks.StatusReply) {};
//申请提现
rpc ApplyCash (ApplyCashRequest) returns (StatusReply) {};
rpc ApplyCash (ApplyCashRequest) returns (blocks.StatusReply) {};
}
message GetWalletRequest {

View File

@@ -1,6 +1,6 @@
syntax = "proto3";
package wallet;
option go_package = ".;wallet";
option go_package = "bsm/full/module/finance/wallet/pb;wallet";
service Wechat {
//微信JSAPI下单
rpc JsapiPreOrder(WxpayJSAPIPreOrderRequest) returns (WxpayJSAPIPreOrderReply) {}