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,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
}